/* ═══════════════════════════════════════════════════════════════════════════
   EU Animal – WCFM Signup Style
   Targets WCFM Membership's signup flow and overrides default styling
   with EU Animal's navy + yellow brand.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ea-navy:       #0d1b3e;
  --ea-navy-light: #1a2d5a;
  --ea-yellow:     #f5c400;
  --ea-yellow-dk:  #d4a800;
  --ea-white:      #ffffff;
  --ea-gray-bg:    #f7f7f5;
  --ea-gray-light: #e4e4e0;
  --ea-gray-text:  #666660;
  --ea-red:        #c0392b;
  --ea-radius:     10px;
  --ea-radius-sm:  7px;
}

/* ── Outer wrapper ────────────────────────────────────────────────────────── */

#wcfm-main-contentainer,
.wcfm-membership-wrapper,
#wcfm_membership_container {
  background: var(--ea-white) !important;
  border-radius: 14px !important;
  border: 1px solid var(--ea-gray-light) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 24px rgba(13,27,62,.08) !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

/* ── Progress steps bar ───────────────────────────────────────────────────── */

ol.wc-progress-steps,
.wc-progress-steps {
  background: var(--ea-navy) !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  list-style: none !important;
  border-bottom: none !important;
}

ol.wc-progress-steps li,
.wc-progress-steps li {
  flex: 1 !important;
  text-align: center !important;
  padding: 14px 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.4) !important;
  border-bottom: 3px solid transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  background: none !important;
  position: relative !important;
  cursor: default !important;
  transition: color .2s, border-color .2s !important;
}

ol.wc-progress-steps li::before,
.wc-progress-steps li::before {
  content: none !important;
}

ol.wc-progress-steps li.active,
.wc-progress-steps li.active,
ol.wc-progress-steps li.wc-progress-steps-current,
.wc-progress-steps .wc-progress-steps-current {
  color: var(--ea-yellow) !important;
  border-bottom-color: var(--ea-yellow) !important;
  font-weight: 700 !important;
}

ol.wc-progress-steps li.done,
.wc-progress-steps li.done,
ol.wc-progress-steps li.wc-progress-steps-done,
.wc-progress-steps .wc-progress-steps-done {
  color: rgba(255,255,255,0.65) !important;
  border-bottom-color: rgba(255,255,255,0.2) !important;
}

/* ── Inner content padding ────────────────────────────────────────────────── */

#wcfm-content,
.wcfm-membership-wrapper > *:not(ol),
#wcfm_membership_container > *:not(ol.wc-progress-steps) {
  padding: 32px 40px !important;
}

/* ── Plan cards grid ──────────────────────────────────────────────────────── */

.wcfm_membership_plan_lists,
.wcfm-membership-plan-lists {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 20px !important;
  padding: 32px 40px !important;
  background: var(--ea-white) !important;
}

.wcfm_membership_plan,
.wcfm-membership-plan {
  border: 2px solid var(--ea-gray-light) !important;
  border-radius: var(--ea-radius) !important;
  overflow: hidden !important;
  transition: border-color .2s, transform .15s !important;
  background: var(--ea-white) !important;
  box-shadow: none !important;
}

.wcfm_membership_plan:hover,
.wcfm-membership-plan:hover {
  border-color: var(--ea-yellow) !important;
  transform: translateY(-2px) !important;
}

/* Plan title/header */
.wcfm_membership_plan .plan_title,
.wcfm_membership_plan h2,
.wcfm_membership_plan .wcfm_membership_plan_title,
.wcfm-membership-plan .plan_title {
  background: var(--ea-navy) !important;
  color: var(--ea-white) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  border: none !important;
  text-align: left !important;
}

/* Price block */
.wcfm_membership_plan .plan_price,
.wcfm_membership_plan .wcfm_membership_plan_price,
.wcfm-membership-plan .plan_price,
.wcfmvm_plan_price_wrapper {
  background: var(--ea-yellow) !important;
  padding: 24px 20px !important;
  text-align: center !important;
  color: var(--ea-navy) !important;
}

.wcfm_membership_plan .plan_price .amount,
.wcfm_membership_plan .wcfm_membership_plan_price .amount,
.wcfmvm_plan_price_wrapper .woocommerce-Price-amount,
.wcfmvm_plan_price_wrapper .amount {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: var(--ea-navy) !important;
  display: block !important;
  line-height: 1.1 !important;
}

.wcfm_membership_plan .plan_price .per,
.wcfm_membership_plan .plan_duration,
.wcfmvm_plan_price_wrapper .wcfmvm_plan_duration {
  font-size: 13px !important;
  color: rgba(13,27,62,0.65) !important;
  display: block !important;
  margin-top: 4px !important;
}

/* Plan body / features */
.wcfm_membership_plan .plan_features,
.wcfm_membership_plan .wcfm_membership_plan_body,
.wcfm-membership-plan .plan_features {
  padding: 18px 20px !important;
  background: var(--ea-white) !important;
}

.wcfm_membership_plan .plan_features li,
.wcfm-membership-plan .plan_features li {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: #333 !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid var(--ea-gray-light) !important;
  list-style: none !important;
}

.wcfm_membership_plan .plan_features li::before,
.wcfm-membership-plan .plan_features li::before {
  content: '' !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--ea-yellow) !important;
  flex-shrink: 0 !important;
}

.wcfm_membership_plan .plan_features li:last-child {
  border-bottom: none !important;
}

/* Choose / select button */
.wcfm_membership_plan .plan_choose a,
.wcfm_membership_plan .plan_choose input[type="submit"],
.wcfm_membership_plan .plan_choose button,
.wcfm-membership-plan .plan_choose a,
.wcfmvm_plan_choose a,
.wcfmvm_plan_choose button {
  display: block !important;
  width: 100% !important;
  background: var(--ea-yellow) !important;
  color: var(--ea-navy) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  margin-top: 14px !important;
  transition: background .15s !important;
  box-shadow: none !important;
}

.wcfm_membership_plan .plan_choose a:hover,
.wcfm_membership_plan .plan_choose button:hover,
.wcfmvm_plan_choose a:hover {
  background: var(--ea-yellow-dk) !important;
}

/* ── Registration form ────────────────────────────────────────────────────── */

.wcfmvm-registration-wrapper,
#wcfmvm_registration_form,
.wcfm_reg_form_wrapper {
  padding: 32px 40px !important;
}

/* Form rows */
.wcfmvm-registration-wrapper .form-row,
#wcfmvm_registration_form .form-row,
.wcfm_reg_field {
  margin-bottom: 18px !important;
}

/* Labels */
.wcfmvm-registration-wrapper label,
#wcfmvm_registration_form label,
.wcfm_reg_field label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ea-gray-text) !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  margin-bottom: 6px !important;
}

/* Inputs */
.wcfmvm-registration-wrapper input[type="text"],
.wcfmvm-registration-wrapper input[type="email"],
.wcfmvm-registration-wrapper input[type="password"],
.wcfmvm-registration-wrapper input[type="tel"],
.wcfmvm-registration-wrapper select,
#wcfmvm_registration_form input[type="text"],
#wcfmvm_registration_form input[type="email"],
#wcfmvm_registration_form input[type="password"],
#wcfmvm_registration_form select,
.wcfm_reg_field input,
.wcfm_reg_field select {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--ea-gray-light) !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  background: var(--ea-white) !important;
  color: var(--ea-navy) !important;
  transition: border-color .15s !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
}

.wcfmvm-registration-wrapper input:focus,
#wcfmvm_registration_form input:focus,
.wcfm_reg_field input:focus {
  border-color: var(--ea-navy) !important;
  box-shadow: none !important;
}

/* Store slug hint */
.wcfm_store_url_base,
#wcfm_store_name_sub {
  font-size: 12px !important;
  color: var(--ea-gray-text) !important;
  margin-top: 5px !important;
  display: block !important;
}

/* ── Payment step ─────────────────────────────────────────────────────────── */

.wcfm_membership_pay,
#wcfm_membership_pay,
.wcfmvm-payment-wrapper {
  padding: 32px 40px !important;
  background: var(--ea-white) !important;
}

/* "Review your plan" heading */
.wcfm_review_pay_welcome,
.wcfmvm_review_plan_title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ea-gray-text) !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  margin-bottom: 14px !important;
  display: block !important;
}

/* Plan review box */
.wcfm_membership_review_plan,
.wcfmvm_review_plan_wrapper {
  background: var(--ea-navy) !important;
  border-radius: var(--ea-radius) !important;
  padding: 20px 24px !important;
  margin-bottom: 28px !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.wcfm_membership_review_plan *,
.wcfmvm_review_plan_wrapper * {
  color: var(--ea-white) !important;
}

.wcfm_membership_review_plan .wcfm_membership_plan_title,
.wcfm_membership_review_plan h3,
.wcfm_membership_review_plan .plan_title,
.wcfmvm_review_plan_wrapper .plan_title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--ea-white) !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wcfm_membership_review_plan .amount,
.wcfm_membership_review_plan .woocommerce-Price-amount,
.wcfmvm_review_plan_wrapper .amount {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--ea-yellow) !important;
}

/* "Payment options:" heading */
.wcfm_review_pay_welcome + *,
.wcfmvm_payment_options_title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ea-gray-text) !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  margin-bottom: 12px !important;
}

/* Payment method rows */
.wcfm_review_pay_non_free,
.wcfmvm_payment_option_row,
.wcfm_membership_pay .payment_method {
  border: 1.5px solid var(--ea-gray-light) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  background: var(--ea-white) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: border-color .15s !important;
}

.wcfm_review_pay_non_free:hover,
.wcfmvm_payment_option_row:hover {
  border-color: var(--ea-navy) !important;
}

.wcfm_review_pay_non_free input[type="radio"],
.wcfmvm_payment_option_row input[type="radio"] {
  accent-color: var(--ea-navy) !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.wcfm_review_pay_non_free label,
.wcfmvm_payment_option_row label {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--ea-navy) !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.wcfm_review_pay_non_free .woocommerce-Price-amount,
.wcfm_review_pay_non_free .amount {
  color: var(--ea-red) !important;
  font-weight: 700 !important;
}

/* Stripe card fields wrapper */
#wcfm_stripe_card_element,
.wcfm-stripe-card-element,
.StripeElement {
  border: 1.5px solid var(--ea-gray-light) !important;
  border-radius: 8px !important;
  padding: 13px 14px !important;
  background: var(--ea-gray-bg) !important;
  transition: border-color .15s !important;
}

.StripeElement--focus {
  border-color: var(--ea-navy) !important;
}

/* ── Donation box (from our add-on) ───────────────────────────────────────── */

.sp-wcfm-donation-box {
  border: 2px solid var(--ea-yellow) !important;
  border-radius: var(--ea-radius) !important;
  background: #fffef5 !important;
  padding: 18px 20px !important;
  margin: 20px 0 !important;
}

.sp-wcfm-checkbox-label {
  gap: 14px !important;
}

.sp-wcfm-checkmark {
  border-color: var(--ea-navy) !important;
  border-radius: 5px !important;
}

.sp-wcfm-checkbox-label input:checked ~ .sp-wcfm-checkmark {
  background: var(--ea-navy) !important;
  border-color: var(--ea-navy) !important;
}

.sp-wcfm-label-text {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ea-navy) !important;
}

.sp-wcfm-desc {
  color: var(--ea-gray-text) !important;
  font-size: 13px !important;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

/* Primary / next / register / pay buttons */
input[name="wcfm_membership_pay"],
#wcfm_membership_pay_btn,
.wcfm-membership-pay-btn,
.wcfm_membership_registration_wrapper input[type="submit"],
.wcfm_reg_submit,
.wcfmvm_pay_btn,
.wcfmvm-next-btn,
button.wcfm-btn-default,
a.wcfm-btn-default,
.wcfm_membership_pay input[type="submit"],
.wcfm_btn_submit {
  background: var(--ea-yellow) !important;
  color: var(--ea-navy) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 13px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background .15s !important;
  box-shadow: none !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-family: inherit !important;
}

input[name="wcfm_membership_pay"]:hover,
#wcfm_membership_pay_btn:hover,
.wcfm_reg_submit:hover,
.wcfmvm_pay_btn:hover,
button.wcfm-btn-default:hover {
  background: var(--ea-yellow-dk) !important;
}

/* Back buttons */
.wcfm-btn-back,
.wcfmvm-back-btn,
a.wcfm-btn-back {
  background: var(--ea-white) !important;
  color: var(--ea-gray-text) !important;
  border: 2px solid var(--ea-gray-light) !important;
  border-radius: 8px !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: border-color .15s, color .15s !important;
  font-family: inherit !important;
}

.wcfm-btn-back:hover,
.wcfmvm-back-btn:hover {
  border-color: var(--ea-navy) !important;
  color: var(--ea-navy) !important;
}

/* Yellow buttons (WCFM default) */
.wcfm_submit_button,
.wcfmvm_membership_btn {
  background: var(--ea-yellow) !important;
  color: var(--ea-navy) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

/* ── Error / notice boxes ─────────────────────────────────────────────────── */

.swpm-red-box,
.wcfm-error,
.woocommerce-error {
  background: #fdecea !important;
  border: 1.5px solid #e8b0ab !important;
  border-radius: 8px !important;
  color: var(--ea-red) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
}

.wcfm-warning,
.woocommerce-info {
  background: #fffbea !important;
  border: 1.5px solid var(--ea-yellow) !important;
  border-radius: 8px !important;
  color: #7a5c00 !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
}

/* ── Thank you step ───────────────────────────────────────────────────────── */

.wcfm_membership_thankyou,
.wcfmvm-thankyou-wrapper {
  text-align: center !important;
  padding: 40px !important;
}

.wcfm_membership_thankyou h2,
.wcfmvm-thankyou-wrapper h2 {
  color: var(--ea-navy) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}

.wcfm_membership_thankyou p,
.wcfmvm-thankyou-wrapper p {
  color: var(--ea-gray-text) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* ── Remove WCFM default decorations ─────────────────────────────────────── */

.wcfm_membership_plan .plan_price .circle,
.wcfmvm_price_circle {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: block !important;
  margin: 0 !important;
}

/* Remove default teal/blue background from plan section */
.wcfm_membership_review_plan_section,
.wcfmvm_review_plan_section {
  background: none !important;
  padding: 0 !important;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .wcfm_membership_pay,
  #wcfm_membership_pay,
  .wcfmvm-registration-wrapper,
  #wcfmvm_registration_form,
  .wcfm_membership_plan_lists {
    padding: 20px 16px !important;
  }

  .wcfm_membership_plan_lists {
    grid-template-columns: 1fr !important;
  }

  #wcfm-content,
  .wcfm-membership-wrapper > *:not(ol) {
    padding: 20px 16px !important;
  }
}
