/* ============================================================
   Hybrid Sports Club : Membership Page Styles
   membership.css
   ============================================================ */

/* Base Reset for This Page */
*, *::before, *::after { box-sizing: border-box; }

/* Navbar Membership Link */
.navbar-link-membership {
  position: relative;
  color: #d4a017 !important;
  font-weight: 700 !important;
}

.navbar-link-membership::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #d4a017;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.active-page {
  pointer-events: none;
}

/* Ensure pill badges are completely disabled */
.section-label,
.membership-badge {
  display: none !important;
}

/* Hero Section with Uploaded Photo Background */
.membership-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 24px 80px;
}

.membership-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 26, 8, 0.60) 0%, rgba(17, 34, 15, 0.50) 50%, rgba(10, 26, 8, 0.60) 100%),
    url('membership_hero.jpg') center/cover no-repeat;
  z-index: 0;
}

.membership-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.40) 100%);
}

.membership-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.membership-hero-title {
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-accent {
  background: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #d4a017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
}

.membership-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  max-width: 540px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.membership-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(17, 34, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.price-amount {
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: 2.5rem;
  color: #d4a017;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Become a Core Member Hero CTA Button — White background, black text, no yellow glow */
.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #11220f;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 34px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-family: var(--font-display, 'Antonio', sans-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
  color: #11220f;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* Section Common */
.membership-benefits-section,
.how-it-works-section,
.membership-form-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #11220f;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

.benefit-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.benefit-card::before {
  display: none !important;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 34, 15, 0.1);
  border-color: #11220f;
}

.benefit-card--featured {
  background: linear-gradient(135deg, #11220f 0%, #1e3d18 100%);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.benefit-card--featured::before {
  display: none !important;
}

.benefit-card--featured .benefit-title { color: #ffffff; }
.benefit-card--featured .benefit-desc { color: rgba(255,255,255,0.8); }
.benefit-card--featured .benefit-icon { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

.benefit-icon {
  width: 52px;
  height: 52px;
  background: rgba(17, 34, 15, 0.07);
  color: #11220f;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #11220f;
  margin: 0 0 8px 0;
}

.benefit-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* How It Works Section */
.how-it-works-section {
  background: #f8fafc;
  max-width: 100%;
  padding: 80px 24px;
}

.how-it-works-section .section-header,
.how-it-works-section .steps-row {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.steps-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 700px) {
  .steps-row { flex-direction: column; }
  .step-divider { width: 2px; height: 40px; }
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
}

/* How It Works numbers changed to Hybrid primary color (#11220f) */
.step-number {
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #11220f;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.9;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #11220f;
  margin: 0 0 8px 0;
}

.step-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.step-divider {
  width: 60px;
  height: 2px;
  background: #11220f;
  flex-shrink: 0;
  border-radius: 2px;
  opacity: 0.25;
}

/* Signup Form Section */
.membership-form-section {
  padding: 80px 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.membership-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .membership-form-wrapper { grid-template-columns: 1fr; gap: 32px; }
}

.form-left-inner {
  position: sticky;
  top: 100px;
}

.form-title {
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #11220f;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  letter-spacing: 0.02em;
}

.form-subtitle {
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 28px 0;
}

.form-price-card {
  background: linear-gradient(135deg, #11220f 0%, #1e3d18 100%);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
}

.form-price-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.form-price-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-price-val {
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #d4a017;
  letter-spacing: 0.02em;
}

.form-price-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-price-perks li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  line-height: 1.4;
}

/* Form Right */
.form-right {
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(17, 34, 15, 0.06);
}

@media (max-width: 500px) {
  .form-right { padding: 24px 18px; }
}

.mem-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .mem-form-grid { grid-template-columns: 1fr; }
}

.mem-full-width {
  grid-column: 1 / -1;
}

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

.mem-form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.req {
  color: #ef4444;
}

.mem-form-group input {
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #fafbfc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mem-form-group input:focus {
  border-color: #11220f;
  box-shadow: 0 0 0 3px rgba(17, 34, 15, 0.08);
  background: #ffffff;
}

.mem-form-group input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.mem-form-group input::placeholder {
  color: #94a3b8;
}

.field-error {
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 500;
  min-height: 16px;
  display: block;
}

.mem-form-consent {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e8edf2;
}

/* Final Become a Core Member button: Hybrid primary color with WHITE text */
.btn-mem-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #11220f 0%, #1e3d18 100%);
  color: #ffffff;
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(17, 34, 15, 0.25);
}

.btn-mem-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(17, 34, 15, 0.35);
}

.btn-mem-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Card */
.membership-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  gap: 16px;
}

.success-icon-ring {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d1f295, #a8e063);
  color: #11220f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(17, 34, 15, 0.2);
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #11220f;
  text-transform: uppercase;
  margin: 0;
}

.success-message {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  max-width: 360px;
  margin: 0;
}

.success-member-id {
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #11220f;
  background: rgba(17, 34, 15, 0.08);
  border: 1px solid rgba(17, 34, 15, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  letter-spacing: 0.08em;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.btn-success-rsvp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #11220f;
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-display, 'Antonio', sans-serif);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-success-rsvp:hover {
  background: #1e3d18;
}

.btn-success-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-success-whatsapp:hover {
  background: #1aad54;
}
