/* ==========================================================================
   FALCON CLUB — MEMBERSHIP REGISTRATION PAGE STYLES
   Inherits full design tokens from style.css
   ========================================================================== */

/* ── Container & Hero Layout ── */
.reg-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.reg-page-hero {
  padding: 140px 0 40px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.08) 0%, transparent 70%);
}

.reg-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-08, rgba(200, 16, 46, 0.08));
  color: var(--red, #C8102E);
  border: 1px solid var(--red-15, rgba(200, 16, 46, 0.15));
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* ── Progress Bar Component ── */
.reg-progress-wrapper {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 16px;
  position: relative;
}

.reg-progress-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.reg-progress-line-bg {
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #E5E7EB;
  border-radius: 10px;
  z-index: 1;
}

.reg-progress-line-fill {
  position: absolute;
  top: 24px;
  left: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--red, #C8102E) 0%, #FF2E4E 100%);
  border-radius: 10px;
  z-index: 1;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(200, 16, 46, 0.5);
}

.reg-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
}

.reg-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #E5E7EB;
  color: var(--grey-500, #6B7280);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.reg-step-node.active .reg-step-circle {
  background: var(--red, #C8102E);
  border-color: var(--red, #C8102E);
  color: #FFFFFF;
  box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.15), 0 8px 20px rgba(200, 16, 46, 0.3);
  transform: scale(1.08);
}

.reg-step-node.completed .reg-step-circle {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.reg-step-label {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--grey-500, #6B7280);
  transition: color 0.3s ease;
}

.reg-step-node.active .reg-step-label {
  color: var(--black, #111114);
}

.reg-step-node.completed .reg-step-label {
  color: #10B981;
}

/* ── Step Container Animations ── */
.reg-step-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reg-step-panel.active-panel {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ── Plan Selection Top Box ── */
.selected-membership-box {
  background: #FFFFFF;
  border: 2px solid var(--red-15, rgba(200, 16, 46, 0.2));
  border-radius: 18px;
  padding: 24px 32px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.sel-mem-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sel-mem-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red, #C8102E) 0%, #9E0B22 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3);
}

.sel-mem-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black, #111114);
  margin-bottom: 4px;
}

.sel-mem-badge {
  display: inline-block;
  background: #ECFDF5;
  color: #059669;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-switch-toggle {
  display: inline-flex;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 100px;
  gap: 4px;
}

.plan-switch-btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.25s ease;
}

.plan-switch-btn.active {
  background: var(--red, #C8102E);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

/* ── Promotional Benefits Banner ── */
.benefits-promo-banner {
  background: linear-gradient(135deg, #0F0F14 0%, #1A0508 50%, #0F0F14 100%);
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 36px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(200, 16, 46, 0.15);
  animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 20px rgba(200, 16, 46, 0.15); }
  50% { box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 40px rgba(200, 16, 46, 0.35); }
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 16, 46, 0.25);
  color: #FF4D6D;
  border: 1px solid rgba(200, 16, 46, 0.5);
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.promo-headline {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.promo-highlight {
  color: #FF2E4E;
}

.promo-subtext {
  color: #9CA3AF;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.promo-comparison-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 28px;
  flex-wrap: wrap;
}

.comp-box {
  flex: 1;
  min-width: 140px;
}

.comp-label {
  font-size: 0.75rem;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.comp-price-old {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #9CA3AF;
  text-decoration: line-through;
}

.comp-price-new {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: #00E676;
}

.comp-arrow {
  color: var(--red-light, #FF2E4E);
  font-size: 1.5rem;
  font-weight: bold;
}

.comp-save-badge {
  background: linear-gradient(135deg, var(--red, #C8102E) 0%, #9E0B22 100%);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
}

/* ── Form Controls & Grid ── */
.reg-form-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.reg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black, #111114);
}

.form-label span.req {
  color: var(--red, #C8102E);
}

.form-input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: #F8F9FC;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.95rem;
  color: var(--black, #111114);
  transition: all 0.25s ease;
  box-sizing: border-box;
  outline: none;
}

.form-input:focus {
  background: #FFFFFF;
  border-color: var(--red, #C8102E);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

.form-input.error {
  border-color: #EF4444;
  background: #FEF2F2;
  animation: errorShake 0.4s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form-error-msg {
  font-size: 0.78rem;
  color: #EF4444;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.form-error-msg.show {
  display: block;
}

/* ── Primary Action Buttons ── */
.btn-reg-primary {
  width: 100%;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--red, #C8102E) 0%, #9E0B22 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(200, 16, 46, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.btn-reg-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(200, 16, 46, 0.4);
}

.btn-reg-primary:active {
  transform: translateY(0);
}

.btn-reg-secondary {
  padding: 16px 32px;
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
  border-radius: 100px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-reg-secondary:hover {
  background: #E5E7EB;
  color: #111114;
}

/* ── Step 2 Payment Cards & Layout ── */
.payment-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.pay-card-option {
  background: #FFFFFF;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pay-card-option:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.pay-card-option.selected {
  border-color: var(--red, #C8102E);
  background: #FFF0F2;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.12);
}

.pay-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F8F9FC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black, #111114);
}

.pay-card-option.selected .pay-icon-box {
  background: var(--red, #C8102E);
  color: #FFFFFF;
}

.pay-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--black, #111114);
}

.pay-subtitle {
  font-size: 0.75rem;
  color: #6B7280;
}

/* ── Order Summary Card ── */
.order-summary-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  position: sticky;
  top: 100px;
}

.summary-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--black, #111114);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #4B5563;
  margin-bottom: 12px;
}

.summary-row.total {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--black, #111114);
  padding-top: 16px;
  border-top: 2px dashed #E5E7EB;
  margin-top: 16px;
  margin-bottom: 24px;
}

.summary-total-amount {
  color: var(--red, #C8102E);
}

.ssl-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #059669;
  font-weight: 700;
  background: #ECFDF5;
  padding: 10px;
  border-radius: 10px;
}

/* ── Step 3 Celebration & Hero 3D Card ── */
.celebration-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.success-check-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  margin-bottom: 24px;
  animation: successScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successScale {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.activated-hero-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--black, #111114);
  margin-bottom: 10px;
}

.activated-hero-subtitle {
  font-size: 1.1rem;
  color: #4B5563;
  margin-bottom: 40px;
}

/* Hero 3D Card Container Wrapper */
/* ── 3D Card Flip Absolute Positioning & Rotation Fix ── */
.mem-card-flip-container.manual-flipped {
  transform: rotateY(180deg) !important;
  -webkit-transform: rotateY(180deg) !important;
}

.mem-card-flip-front,
.mem-card-flip-back {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-style: preserve-3d !important;
  -webkit-transform-style: preserve-3d !important;
}

.step3-card-hero-wrapper {
  max-width: 520px;
  margin: 0 auto 48px;
  position: relative;
}

/* Flip / Rotation Controls */
.card-control-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.card-control-btn {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 100px;
  padding: 8px 20px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey-500, #6B7280);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.card-control-btn:hover {
  border-color: var(--red, #C8102E);
  color: var(--red, #C8102E);
}

/* ── Actions Buttons Bar ── */
.success-actions-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Continuous slow rotation CSS modifier if enabled */
.auto-rotate-card {
  animation: cardContinuousSpin 18s linear infinite;
}

@keyframes cardContinuousSpin {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* ── Responsiveness ── */
@media (max-width: 900px) {
  .payment-layout-grid {
    grid-template-columns: 1fr;
  }
  .order-summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .reg-form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
  .promo-comparison-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .selected-membership-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .reg-progress-line-bg, .reg-progress-line-fill {
    left: 20px;
    right: 20px;
  }
}


/* ── ADDITIONAL MOBILE RESPONSIVENESS FOR STEP PROGRESS & CARDS ── */
@media (max-width: 576px) {
  .reg-page-hero {
    padding: 100px 0 24px !important;
  }
  
  .reg-progress-wrapper {
    padding: 0 8px !important;
    margin-bottom: 28px !important;
  }

  .reg-progress-line-bg, .reg-progress-line-fill {
    left: 16px !important;
    right: 16px !important;
    top: 18px !important;
  }

  .reg-step-circle {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }

  .reg-step-label {
    font-size: 0.68rem !important;
  }

  .selected-membership-box {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .sel-mem-title {
    font-size: 1rem !important;
  }

  .step3-card-hero-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 4px !important;
  }

  .mem-card-flip-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .success-actions-bar {
    flex-direction: column !important;
    width: 100% !important;
  }

  .success-actions-bar .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}


/* ── COMPACT MOBILE CARD & ANIMATION DOWNSIZING ── */
@media (max-width: 576px) {
  .step3-card-hero-wrapper {
    max-width: 320px !important;
    margin: 0 auto 28px !important;
  }

  .success-check-icon {
    width: 54px !important;
    height: 54px !important;
    margin-bottom: 16px !important;
  }

  .success-check-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .activated-hero-title {
    font-size: 1.6rem !important;
  }

  .activated-hero-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 24px !important;
  }

  .card-control-bar {
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .card-control-btn {
    padding: 6px 14px !important;
    font-size: 0.72rem !important;
  }
}
