/**
 * Sunflower Children's Hospice - Allinone Wizard Styles
 * Overrides for Bootstrap-based multistep.css with Sunflower branding
 */

/* ============================================
   CSS VARIABLES - Sunflower Brand Colors
   ============================================ */
:root {
  --sfch-yellow-light: #ffe61f;
  --sfch-yellow-dark: #f9ae30;
  --sfch-green-light: #7bac32;
  --sfch-green-dark: #1f6b29;
  --sfch-navy-dark: #001f4e;
  --sfch-navy-blue: #002C58;
  --sfch-white: #ffffff;
}

/* ============================================
   GLOBAL OVERRIDES
   ============================================ */
body {
  font-family: Arial, Helvetica, sans-serif;
}

.container {
  max-width: 800px;
}

.bg-light { background-color: inherit !important; }

/* ============================================
   PRIMARY BUTTONS (Next, Submit, Donate)
   ============================================ */
.btn-primary,
button.next,
button.submit {
  background: linear-gradient(to bottom, #ffe61f 1%, #f9ae30 100%) !important;
  border: none !important;
  color: #002C58 !important;
  font-weight: bold !important;
  text-shadow: -1px 1px 1px rgba(255,255,255,0.5);
  box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  padding: 12px 30px;
  border-radius: 5px;
  white-space: nowrap;
}

.btn-primary:hover,
button.next:hover,
button.submit:hover {
  background: linear-gradient(to bottom, #7bac32 1%, #1f6b29 100%) !important;
  color: #ffffff !important;
  text-shadow: none;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.btn-primary:active,
button.next:active,
button.submit:active {
  transform: translateY(1px);
}

/* Previous button */
button.previous {
  background: #ffffff !important;
  border: 2px solid #002C58 !important;
  color: #002C58 !important;
  font-weight: bold !important;
}

button.previous:hover {
  background: #002C58 !important;
  color: #ffffff !important;
}

/* ============================================
   DONATION TYPE TABS (One-time / Regular)
   ============================================ */
.plan {
  background: #ffffff;
  border: 2px solid #ffe61f;
  color: #002C58;
  padding: 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 600;
}

.plan:hover {
  background: linear-gradient(to bottom, #ffe61f 1%, #f9ae30 100%);
  color: #002C58;
  text-shadow: -1px 1px 1px rgba(255,255,255,0.5);
}

input[type="radio"]:checked + .plan {
  background: linear-gradient(to bottom, #7bac32 1%, #1f6b29 100%);
  border-color: #1f6b29;
  color: #ffffff;
  text-shadow: none;
}

/* ============================================
   AMOUNT SELECTION BUTTONS
   ============================================ */
.amount {
  background: #ffffff;
  border: 3px solid #ffe61f;
  border-radius: 8px;
  padding: 25px 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amount:hover {
  background: linear-gradient(to bottom, #ffe61f 1%, #f9ae30 100%);
  border-color: #f9ae30;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

/* Selected amount */
input[type="radio"]:checked + .amount {
  background: linear-gradient(to bottom, #7bac32 1%, #1f6b29 100%);
  border-color: #1f6b29;
  color: #ffffff;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

input[type="radio"]:checked + .amount .amount-txt label {
  color: #ffffff;
}

.amount-txt {
  width: 100%;
  text-align: center;
}

.amount-txt label {
  font-size: 28px;
  font-weight: bold;
  color: #002C58;
  margin: 0;
  cursor: pointer;
  text-align: center;
  display: block;
}

input[type="radio"]:checked + .amount .amount-txt label {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Custom amount box */
.custom-amount {
  border-style: dashed;
  border-color: #7bac32;
}

.custom-amount:hover {
  border-style: solid;
}

/* ============================================
   STEP INDICATORS
   ============================================ */
/* Center the steps container */
body #multistepForm .steps {
  margin: 0 auto !important;
  max-width: 650px !important;
  display: flex !important;
  justify-content: center !important;
}

.step {
  margin: 0 15px;
  position: relative;
}

/* More specific selector to override multistep.css */
body #multistepForm .steps .step .step-count {
  background: #cccccc !important;
  color: #ffffff !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: bold !important;
  padding: 0 !important;
  transition: all 0.3s ease;
}

body #multistepForm .steps .step.active .step-count {
  background: linear-gradient(to bottom, #ffe61f 1%, #f9ae30 100%) !important;
  color: #002C58 !important;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.5) !important;
  /* Removed scale transform to fix line positioning */
}

/* Connecting lines between step circles - YELLOW by default (completed steps) */
body #multistepForm .steps .step:not(:last-child) .step-count::before {
  content: "";
  display: block;
  width: 216px;
  height: 2px;
  background-color: var(--c-green);
  position: absolute;
  left: 30px;
  top: 14px;
}

/* Gray line for ACTIVE step (current step not completed yet) */
body #multistepForm .steps .step.active.step .step-count::before {
  background-color: #cccccc;
}

/* Gray lines for all steps AFTER active (future steps) */
body #multistepForm .steps .step.active ~ .step .step-count::before {
  background-color: #cccccc;
}

.step-label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #002C58;
  font-size: 14px;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-control:focus {
  border-color: #ffe61f;
  box-shadow: 0 0 0 0.2rem rgba(255, 230, 31, 0.25);
}

input.form-control,
select.form-control,
textarea.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 16px;
}

/* ============================================
   CHECKBOXES FOR CONTACT PREFERENCES
   ============================================ */
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #7bac32;
  border-color: #7bac32;
}

.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(123, 172, 50, 0.25);
}

/* ============================================
   IN MEMORY OF SECTION
   ============================================ */
.imo .custom-radio .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #7bac32;
  border-color: #7bac32;
}

/* ============================================
   STRIPE CARD ELEMENT
   ============================================ */
.StripeElement {
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  padding: 12px;
  transition: border-color 0.3s ease;
}

.StripeElement--focus {
  border-color: #ffe61f;
  box-shadow: 0 0 0 0.2rem rgba(255, 230, 31, 0.25);
}

.StripeElement--invalid {
  border-color: #dc3545;
}

/* ============================================
   HEADINGS & TEXT
   ============================================ */
h4 {
  color: #002C58;
  font-weight: 700;
}

.text-center p {
  color: #333333;
  font-size: 16px;
  line-height: 1.6;
}

/* Strong emphasis color */
.payment p strong,
.details p strong {
  color: #1f6b29;
}

/* ============================================
   LINKS
   ============================================ */
a {
  color: #1f6b29;
  font-weight: 600;
}

a:hover {
  color: #7bac32;
  text-decoration: underline;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.error,
.field-validation-error,
span[data-valmsg-for] {
  color: #dc3545;
  font-weight: 600;
  font-size: 14px;
}

/* ============================================
   RECAPTCHA CONTAINER
   ============================================ */
.g-recaptcha {
  display: inline-block;
}

/* ============================================
   PROCESSING MESSAGE
   ============================================ */
#spBusy {
  text-align: center;
  padding: 20px;
  background: #fff9e6;
  border: 2px solid #ffe61f;
  border-radius: 5px;
  margin-top: 20px;
}

#spBusy span {
  font-weight: bold;
  font-size: 18px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .logo { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
  .logo img { width: 100%; max-width: 531px; }

  .amount-txt label {
    font-size: 22px;
  }

  .step-count {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
  }

  .step-label {
    font-size: 12px;
  }

  button.next,
  button.submit,
  button.previous {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* ============================================
   TAX EFFICIENT GIVING NOTE
   ============================================ */
.col-lg-12.mb-3 {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 5px;
  border-left: 4px solid #7bac32;
  margin-top: 20px;
}

.col-lg-12.mb-3 b {
  color: #1f6b29;
}



/* ============================================
New Styling
   ============================================ */
:root {
  --font-brand: "Bricolage Grotesque", Sans-serif;
  --c-green: #15423D;
  --c-pink: #ED6D61;
  --c-white: #fff;
  --c-black: #000;
  --c-border: rgba(0, 0, 0, 0.3);
  --c-field-bg: #f5f5f5;
  --radius: 10px;
  --transition: all 0.3s ease;
}

.mb-3 {
  margin-bottom: 2rem !important;
}

h4 {
  font-family: var(--font-brand) !important;
  color: var(--c-green) !important;
}

body #multistepForm .plans {
  margin-bottom: 20px;
}

body #multistepForm .steps .step .step-count {
  box-shadow: none !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 42px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

body #multistepForm .steps .step.active .step-count {
  background: var(--c-pink) !important;
  color: var(--c-white) !important;
  box-shadow: none !important;
}

body #multistepForm .steps .step.active .step-count::before {
  background-color: var(--c-border) !important;
}

body #multistepForm .steps .step:not(:last-child) .step-count::before {
  width: 205px !important;
  left: 40px !important;
  top: 20px !important;
}

.step-label {
  font-family: var(--font-brand) !important;
  font-weight: 700 !important;
  color: var(--c-green) !important;
  font-size: 18px !important;
}

.plan,
.btn-primary,
button.next,
button.submit {
  background: var(--c-pink) !important;
  border: 2px solid var(--c-pink) !important;
  padding: 12px 24px !important;
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: var(--font-brand) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.5em !important;
  text-shadow: none !important;
  color: var(--c-white) !important;
  box-shadow: none !important;
}

.amount {
  background: var(--c-white);
  border: 2px solid var(--c-border) !important;
  border-radius: var(--radius);
  padding: 15px 20px;
  transition: var(--transition);
  cursor: pointer;
  min-height: 0;
  box-shadow: none !important;
}

.amount-txt label {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--c-green);
}

.plan:hover,
.amount:hover,
input[type="radio"]:checked + .plan,
input[type="radio"]:checked + .amount {
  color: var(--c-white) !important;
  background: var(--c-pink) !important;
  border: 2px solid var(--c-pink) !important;
  text-shadow: none !important;
}

input[type="radio"]:checked + .amount .amount-txt label,
.amount:hover .amount-txt label {
  color: var(--c-white) !important;
}

input[type="radio"]:checked + .plan:hover {
  background: var(--c-green) !important;
}

body #multistepForm .imo {
  border: 2px solid var(--c-border) !important;
  border-radius: var(--radius) !important;
  padding: 30px !important;
  max-width: 100% !important;
}

body #multistepForm .imo p,
body #multistepForm .imo label.custom-control-label {
  color: var(--c-green) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

body #multistepForm .form-control {
  border: 2px solid var(--c-border) !important;
  color: var(--c-black);
  font-weight: 400;
  font-family: var(--font-brand) !important;
  font-size: 16px;
  background-color: var(--c-field-bg);
  border-radius: var(--radius) !important;
  padding: 20px !important;
}

.btn-primary:hover,
button.next:hover,
button.submit:hover {
  color: var(--c-white) !important;
  background: var(--c-green) !important;
  border: 2px solid var(--c-green) !important;
  text-shadow: none !important;
}

body #multistepForm .bottom-btns .btn {
  cursor: pointer;
  padding: 12px 24px !important;
  font-family: var(--font-brand) !important;
}

button.previous {
  background: var(--c-green) !important;
  border: 2px solid var(--c-green) !important;
  color: var(--c-white) !important;
  font-weight: 700 !important;
  border-radius: var(--radius);
  transition: var(--transition);
}

button.previous:hover {
  background: var(--c-white) !important;
  color: var(--c-green) !important;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

  .cookie-consent p {
    margin: 0;
  }

  .cookie-consent a {
    color: white;
    text-decoration: underline;
  }

  .cookie-consent button {
    background-color: #f1c40f;
    border: none;
    color: #000;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
  }
