﻿/* Contribution Form CSS */


/* ==========================================================================
   BASE CONTAINER & LAYOUT STYLES
   ========================================================================== */

/* Base container styles */
.donate-container { max-width: 100%; margin: 0 auto; background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }

#contributionForm { max-width: 1250px; margin: 0 auto; }

/* ==========================================================================
   FORM NAVIGATION - INITIAL STYLES
   ========================================================================== */

/* Form Navigation */
.form-nav { display: flex; margin-bottom: 30px; border-bottom: 2px solid #eee; justify-content: center; gap: 30px; }

.nav-item { padding: 10px 20px; color: #666; text-decoration: none; position: relative; font-family: 'Open Sans Condensed', sans-serif; }

.nav-item[data-step="1"]:before { content: "1) "; }
.nav-item[data-step="2"]:before { content: "2) "; }

.nav-item.active { color: #0056b3; text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 3px !important; }

.nav-item.completed { color: #000; } /* Set text to black */
.nav-item.completed .fas.fa-check { color: #28a745; } /* Keep checkmark green */

.amount-text { color: #000 !important; }

.nav-item.completed:before { content: none !important; display: none !important; }

.nav-item.completed .fas.fa-check { color: #28a745; margin-right: 8px; }

.nav-item i { margin-right: 0px; }

/* ==========================================================================
   STEP HANDLING
   ========================================================================== */

/* Step handling */
.step { display: none; }

.step.active { display: block; }

/* ==========================================================================
   AMOUNT SELECTION SECTION - INITIAL STYLES
   ========================================================================== */

/* Amount Selection Section */
#amountsSection { text-align: center; margin-bottom: 30px; }

#amountsTitle { font-size: 24px; font-weight: bold; margin-bottom: 10px; color: #333; }

#amountsText { font-size: 16px; color: #666; margin-bottom: 20px; }

#amountsWrapper { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto; max-width: 500px; }

/* ==========================================================================
   CUSTOM AMOUNT STYLES - INITIAL
   ========================================================================== */

/* Custom Amount Styles */
#customAmountWrapper { display: none; margin-top: 20px; justify-content: center; align-items: center; gap: 10px; }

#customAmount { width: 150px; height: 45px; padding: 8px 12px; border: 2px solid #0056b3; border-radius: 4px; font-size: 16px; text-align: center; }

#setCustomAmount { padding: 12px 20px; background: #0056b3; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; }

/* ==========================================================================
   AMOUNT LINK STYLES - INITIAL
   ========================================================================== */

/* Amount Link Styles */
a.amountLink.selected,
a.amountLink.selected:hover { background: #0056b3 !important; color: white !important; }

/* ==========================================================================
   PAYMENT METHODS - INITIAL STYLES
   ========================================================================== */

/* Payment Methods */
.section-label { font-size: 18px; font-weight: bold; margin: 30px 0 15px; color: #333; }

.payment-options { display: flex; gap: 10px; margin: 30px 0; }

.payment-button { padding: 15px 20px; border: 2px solid #0056b3; background: white; color: #0056b3; border-radius: 4px; cursor: pointer; flex: 1; /*font-size: 16px;*/ text-align: center; }

.payment-button.selected { background: #0056b3; color: white; }

/* ==========================================================================
   FORM LAYOUT AND FIELDS - INITIAL STYLES
   ========================================================================== */

/* Form Layout and Fields */
#formWrapper { margin-top: 10px; }

.form-group { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; transition: margin-bottom 0.2s ease-in-out; }

.form-unit { position: relative; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; }

/* ==========================================================================
   VALIDATION STYLES - INITIAL
   ========================================================================== */

/* Validation Styles */
.field-validation-error,
.field-error { color: #e25950; font-size: 0.75em; line-height: 1.2; position: absolute; bottom: -22px; left: 5px; }

.input-validation-error { border-color: #e25950 !important; background-color: rgb(253, 236, 242); }

.form-group:has(.field-validation-error:not(.field-validation-valid)),
.form-group:has(.field-error),
.form-group:has(.input-validation-error) { margin-bottom: 25px; }

/* ==========================================================================
   SPECIAL CASES - INITIAL
   ========================================================================== */

/* Special Cases */
.zipUnit { max-width: 100px; }

#paymentAmountDisplay { margin-bottom: 20px; background-color: #f8f9fa; border-color: #ddd; }

#amountDisplay { text-align: center; font-family: 'Open Sans Condensed', sans-serif; margin-bottom: 10px; }

.hidden { display: none; }

/* ==========================================================================
   BUTTONS - INITIAL STYLES
   ========================================================================== */

/* Buttons */
.submit-button,
.formButton { font-family: 'Inter Tight', sans-serif; background-color: #4cac55; color: white; padding: 12px 18px 13px; font-size: 20px; font-weight: 800; line-height: 20px; border: none; border-radius: 4px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); width: 175px; cursor: pointer; }

.submit-button:hover,
.formButton:hover { transition: all 300ms ease 0s; background-color: #56C44F; }

/* ==========================================================================
   CARD DETAILS LAYOUT - INITIAL
   ========================================================================== */

/* Card Details Layout */
#cardDetailsRow { display: flex; gap: 10px; margin-bottom: 10px; }

#CardNumberUnit { flex: 3; }

#CVVUnit { flex: 1; }

.expiration-inputs { display: flex; gap: 10px; width: 100%; }

#ExpirationMonthUnit,
#ExpirationYearUnit { flex: 1; }

#expirationMonth,
#expirationYear { width: 100%; }

#paymentSection { display: none; }

/* ==========================================================================
   FORM NAVIGATION BUTTONS - INITIAL
   ========================================================================== */

/* Form Navigation Buttons */
.form-nav-buttons { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }

.submit-button { margin: 0; flex: 0 0 auto; }

/* ==========================================================================
   GRID LAYOUT UPDATES
   ========================================================================== */

/* Only add these new styles - don't change any existing CSS */
/* Add/update these styles */
#amountsWrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 auto; max-width: 500px; }

/* Make $1000 and Other Amount take up full width of their cells */
.amountLink { display: block; width: 100%; text-align: center; text-decoration: none; color: white; background-color: #c41230; border: none; }

/* Special handling for Other Amount */
#otherAmount { background-color: #004b87; }

/* Container for Other Amount and its form */
#otherAmountContainer { position: relative; width: 100%; height: 100%; }

.amountLink { margin: 0; display: inline-block; text-align: center; text-decoration: none; color: white; background-color: #c41230; width: 100%; /* Fill grid cell */ box-sizing: border-box; /* Include padding in width */ }

#otherAmount { background-color: #004b87; }

#otherAmountContainer { position: relative; width: 100%; }

#otherAmountForm { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.other-amount-input-group { display: flex; gap: 4px; height: 100%; }

.amount-input-wrapper { position: relative; flex: 1; }

.dollar-sign { position: absolute; left: 12px; top: 40%; transform: translateY(-50%); color: #666; z-index: 1; }

#customAmount { width: 100%; height: 100%; padding: 12px 12px 12px 28px; border: 2px solid #004b87; border-radius: 4px; font-size: 16px; box-sizing: border-box; }

#setCustomAmount { height: 80%; width: 45px; padding: 0; background: #004b87; color: white; border: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

#contributionForm { padding: 0 !important; }

/* ==========================================================================
   CLAMP FONT SIZE SUPPORT
   ========================================================================== */

@supports (font-size: clamp(16px, 3.5vw, 22px)) {
    .amountLink { font-size: clamp(16px, 3.5vw, 22px); }
}

/* ==========================================================================
   PAYMENT OPTIONS UPDATES
   ========================================================================== */

.payment-options { display: flex; gap: 10px; margin: 30px 0; }

.payment-button { flex: 1; min-width: 0; /* Allow buttons to shrink below content width */ }

.payment-options { display: flex; gap: 10px; margin: 30px 0; }

.payment-button { flex: 1; min-width: 0; font-size: clamp(18px, 2.5vw, 20px); /* Fluid font size */ }

/* Font size for the icons */
.payment-button i { font-size: clamp(18px, 2.5vw, 20px); /* Match text size */ }

/* ==========================================================================
   BACK AND SUBMIT BUTTONS UPDATES
   ========================================================================== */

/* Back and Submit buttons */

.form-nav-buttons { display: flex; justify-content: center; margin: 20px 0; }

.submit-button { width: 100%; font-size: clamp(16px, 2.5vw, 20px); padding: clamp(10px, 2vw, 12px) clamp(14px, 2.5vw, 18px); }

/* ==========================================================================
   STRIPE ELEMENTS
   ========================================================================== */

/* Stripe */
/* Container for Stripe Element to match form-field height */
.stripe-element { height: 45px; margin: 10px 0; transform: translateY(-5px); /* Move the entire element up */ }

#card-errors { color: #dc3545; font-size: 14px; margin-top: 8px; font-family: 'Roboto', Helvetica, Arial, sans-serif; }

/* ==========================================================================
   MEDIA QUERIES - TABLET
   ========================================================================== */

/* Media Queries */
@media (max-width: 768px) {
    .form-group { flex-direction: column; gap: 5px; }

    .form-unit { margin-bottom: 5px; }

    .zipUnit { max-width: unset; }
    a.amountLink { flex: 0 0 calc(50% - 10px); }
}

/* Keep your existing base styles and add/update these media query styles */

@media (max-width: 768px) { /* Container width */
    #contributionForm { width: 100%; padding: 0; }
    /* Maintain row layout but scale appropriately */ .form-group { flex-direction: row; gap: 10px; width: 100%; }
    /* General form units */ .form-unit { margin: 0; min-width: 0; /* Allow flex items to shrink below content size */ }
    /* First/Last Name row */ #FirstNameUnit,
    #LastNameUnit { flex: 1; }
    /* Email/Phone row */ #EmailUnit,
    #PhoneUnit { flex: 1; }
    /* Address fields */ #AddressUnit { flex: 1; }
    /* City/State/Zip row */ #CityUnit { flex: 2; }

    #StateUnit { flex: 1; }

    .zipUnit { flex: 1; max-width: none; /* Remove the fixed width */ min-width: 80px; /* Ensure minimum width for ZIP */ }
    /* Credit card fields */ #CardNumberUnit { flex: 2; }

    #CVVUnit { flex: 1; min-width: 80px; }
    /* Make all inputs full width of their containers */
    /* Adjust payment options for better mobile display */ .payment-options { gap: 10px; }

    .payment-button { padding: 12px 15px; }
    /* Amount buttons */ #amountsWrapper { padding: 0 15px; gap: 10px; }
    /* Step Navigation */ .form-nav { margin-bottom: 20px; }

    .nav-item { padding: 8px 12px; font-size: 14px; }
    /* Make checkmark and numbering more compact */ .nav-item.completed .fas.fa-check { margin-right: 4px; font-size: 12px; }

    .nav-item[data-step="1"]:before,
    .nav-item[data-step="2"]:before { margin-right: 0; font-size: 14px; }
    /* Make the selected amount shown in the step more compact */ .nav-item[data-section="select"].completed { font-size: 14px; }
}

/* ==========================================================================
   PAYMENT SURROUND
   ========================================================================== */

#paymentSurround { margin-top: 30px; }

/* Ensure validation errors appear below the field */
.field-validation-error,
.field-error { position: absolute; bottom: -20px; left: 5px; }

/* ==========================================================================
   FORM GROUP LAYOUT UPDATES
   ========================================================================== */

.form-group { display: flex; gap: 10px; margin-bottom: 8px; }

.form-unit { display: flex; flex-direction: column; flex: 1; position: relative; }

/* Specific field adjustments */
.zipUnit { flex: 0 0 120px; /* Fixed width for zip code field */ }

#StateUnit { flex: 0 0 200px; /* Fixed width for state dropdown */ }

/* Maintain full width for address fields */
#AddressUnit, #Address2Unit { flex: 1 1 100%; }

/* Ensure validation errors don't affect layout */
.field-validation-error { position: absolute; bottom: -20px; left: 0; }

/* ==========================================================================
   PAYMENT MESSAGES
   ========================================================================== */

#payment-message, #server-validation-message { display: none; padding: 12px; border: 1px solid #e25950; background-color: #fef8f8; border-radius: 4px; color: #e25950; font-size: 14px; margin-top: 8px; }

/* Container for the payment element */
#paymentSection { margin-bottom: 25px; }

/* ==========================================================================
   STRIPE ELEMENT LABELS
   ========================================================================== */

/* Add this to your CSS styles */
.StripeElement .Label { position: relative; /* For the pseudo-element */ }

.StripeElement .Label::after { content: ' *'; color: #666; }

/* Target specific labels if needed */
.StripeElement [data-elements-label]::after { content: ' *'; color: #666; }

/* ==========================================================================
   FORM FIELDS - ENHANCED STYLES
   ========================================================================== */

/* Form Fields */
.form-field { /* Dimensions */ width: 100%; height: 45px; min-height: 45px; max-height: 45px; /* Padding & Spacing */ padding: 8px 12px; /* Typography */ font-size: 16px; font-family: 'Roboto', Helvetica, Arial, sans-serif; color: rgb(0, 43, 69); /* Border & Background */ border: 1px solid #ACAEB0; border-radius: 3px; background: #fff; /* Box Model */ box-sizing: border-box; /* Transitions */ transition: all 0.2s ease-in-out; background-color:#fff;}

/* Focus State */
.form-field:focus { outline: none; border-color: #009CDE; }

/* Select Field Specific Styles */
select.form-field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding: 8px 12px; /* Ensure consistent padding with other fields */ }

/* Error State */
.input-validation-error { border-color: #e25950 !important; background-color: rgb(253, 236, 242); }

/* Media Query Adjustments */
@media (max-width: 768px) {
    .form-field { min-width: 0; /* Allow inputs to shrink */ }
}

/* ==========================================================================
   FIELD LABEL STYLES - CONSOLIDATED
   ========================================================================== */

/* Consolidated fieldLabel styles */
.fieldLabel { /* Position */ position: static !important; transform: none !important; /* Box model */ display: block; margin: 0 0 8px 0; padding: 0; /* Typography */ font-family: 'Inter Tight', sans-serif !important;
  font-weight: 300; font-size: clamp(15px, 1.6vw + 8.6px, 19px); line-height: 1.2; color: rgb(48, 49, 61); /* Behavior */ transition: color 0.2s ease-in-out; }

/* Focus state - only change color */
.form-unit.is-focused .fieldLabel { color: #009CDE; }

/* Remove floating label states since we're not using them anymore */
.form-unit.has-value .fieldLabel { /* These styles are no longer needed as we're using static labels */ color: inherit; }

/* Specific overrides can be removed */
#StateUnit .fieldLabel { /* All necessary styles are inherited from base .fieldLabel class */ width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; border: 0 !important; }

/* ==========================================================================
   MEDIA QUERY ADJUSTMENTS
   ========================================================================== */

/* Media query adjustments */

@media (max-width: 450px) {
    .payment-options { flex-direction: column; }

    .payment-button { width: 100%; white-space: normal; } /* Reset to fixed size when stacked */ /*}

    /*.payment-button i { font-size: 16px;*/ /* Reset icon size when stacked */ /*}*/
}

@media (max-width: 480px) {
    /* Amount links */
    a.amountLink { flex: 0 0 100%; }

    /* Form elements */
    .form-field { padding: 8px; }

    .form-group { gap: 8px; }

    /*.fieldLabel { font-size: 14px; }*/

    /* Navigation */
    .nav-item { padding: 6px 10px; font-size: 13px; }

    .form-nav { margin-bottom: 15px; }
}

/* ==========================================================================
   PAYMENT OPTIONS - STACKED LAYOUT
   ========================================================================== */

.payment-options {
    display: flex;
    flex-direction: column;  /* Change from row to column */
    gap: 10px;
    margin: 30px 0;
}

.payment-button {
    width: 100%;          /* Ensure buttons take full width */
    padding: 15px 20px;
    border: 2px solid #fff;
    background: white;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(18px, 2.5vw, 22px);
    text-align: center;
    display: flex;        /* Add flex display for better icon alignment */
    align-items: center;  /* Center items vertically */
    justify-content: center; /* Center items horizontally */
}

.payment-button i {
    margin-right: 0px;   /* Add space between icon and text */
}

/* Remove the flex: 1 since we're stacking vertically */
.payment-button {
    flex: none;
}

/* ==========================================================================
   INITIAL FORM STYLES (REDEFINING)
   ========================================================================== */

/* ==========================================================================
   INITIAL FORM STYLES
   ========================================================================== */

.fieldLabel { 
    display: block; 
    margin: 3px 0 3px 5px; 
    color: #111111; 
}

.req { 
    display: inline !important; 
    color: #e25950; 
}

.f-val { 
    display: none; 
}

.formButton { 
    font-family: 'Open Sans', Arial, Helvetica, sans-serif; 
    background-color: #4cac55; 
    color: #ffffff; 
    padding: 12px 18px 13px; 
    display: block; 
    margin: 10px auto; 
    font-size: 17px; 
    font-weight: 600; 
    line-height: 20px; 
    border: medium none; 
    border-radius: 1px; 
    box-shadow: 0 2px 2px rgba(000,000,000,0.1); 
    width: 175px; 
}

.formButton:hover { 
    transition: all 300ms ease 0s; 
    background-color: #56C44F; 
}

.formButton:active { 
    background: #56C44F; 
}

.cbl label { 
    padding-left: 5px; 
}

#formWrapper { 
    margin-top: 10px; 
    max-width: 100%; 
}

.form-group { 
    display: flex; 
    flex-direction: row; 
}

.form-unit { 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    flex-shrink: 1; 
    flex-basis: auto; 
}

.form-field { 
    border: 1px solid #ACAEB0; 
    background-color: #fff; 
    flex-grow: 1; 
    flex-shrink: 1; 
    flex-basis: auto; 
    display: block; 
    margin: 5px; 
    border-radius: 3px; 
    font-size: 15px; 
    font-family: 'Roboto', Helvetica, Arial, sans-serif; 
    color: rgb(0, 43, 69); 
    padding: 12px 17px; 
}

.form-field:focus { 
    outline: none !important; 
    border: 2px solid #3b82f6 !important; 
    transition: all 300ms ease 0s; 
}

#CBOptions { 
    color: #111111; 
}

.redOutline { 
    border: 1px solid #e25950; 
    box-shadow: 0 6px 9px rgba(50, 50, 93, 0.06); 
}

.zipUnit { 
    max-width: 100px; 
}

/* Consolidating duplicate .req rule */
.req { 
    color: #e25950; 
    margin-left: 3px; 
}

.validation-summary-errors { 
    color: #e25950; 
    margin-top: 20px; 
}

.validation-summary-errors ul { 
    padding-left: 20px; 
}

.input-validation-error { 
    border: 1px solid #e25950 !important; 
}

/* ==========================================================================
   CONTACT OPTIONS
   ========================================================================== */

.contact-options-container { 
    display: flex; 
    justify-content: center; 
    width: 100%; 
    padding: 20px 0; 
}

.contact-options-list { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    width: 100%; 
    margin: 0 auto; 
}

.contact-option-item { 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
}

.contact-option-item input[type="checkbox"] { 
    margin-right: 10px; 
}

.contact-option-item label { 
    margin: 0; 
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media screen and (max-width: 600px) {
    .form-group { 
        display: flex; 
        flex-direction: column; 
    }
    .zipUnit { 
        max-width: unset; 
    }
}

@media screen and (max-width:1330px) {
    #contentInterior { 
        max-width: 90% !important; 
        width: 100% !important; 
        margin: auto; 
    }
}

/* ==========================================================================
   UPDATED FORM STYLES (OVERRIDES)
   ========================================================================== */

.form-group { 
    display: flex; 
    flex-direction: row; 
    gap: 10px; 
    width: 100%; 
}

.form-unit { 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    min-width: 0; 
}

.form-field { 
    border: 1px solid #ACAEB0; 
    width: 100%; 
    display: block; 
    margin: 5px 0; 
    border-radius: 3px; 
    font-size: 15px; 
    font-family: 'Roboto', Helvetica, Arial, sans-serif; 
    color: rgb(0, 43, 69); 
    padding: 12px 17px; 
    box-sizing: border-box; 
}

.form-field:focus { 
    outline: none !important; 
    border: 2px solid #009CDE; 
    transition: all 300ms ease 0s; 
}

.zipUnit { 
    flex: 0 0 100px; 
}

/* Contact form fixes */
.fieldLabel { 
    margin: 3px 0 3px 0px; 
}

.form-field { 
    width: 100%; 
    padding: 18px 20px; 
    border: 2px solid #d1d5db; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 500; 
    background-color: #f9fafb; 
    transition: all 0.3s ease; 
    outline: none; 
    font-family: inherit; 
}

.form-field:focus { 
    border-color: #3b82f6; 
    background-color: white; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
    border: 2px solid; 
}

.formButton { 
    width: 100%; 
    padding: 18px; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 18px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    margin-top: 8px; 
    text-transform: none; 
    letter-spacing: 0.5px; 
}

.formButton:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3); 
}

#paymentSurround {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#paymentSurround::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

#paymentSurround:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px -5px rgba(0, 0, 0, 0.15),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-field { 
    width: 100%; 
    padding: 18px 20px!important; 
    border: 2px solid #d1d5db; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 500; 
    background-color: #f9fafb; 
    transition: all 0.3s ease; 
    outline: none; 
    font-family: inherit;
    max-height:unset!important;
    min-height:unset!important;
    height:unset!important;
}

#amountDisplay {
  text-align: center;
  /*font-family: 'Open Sans Condensed', sans-serif;*/
  margin-bottom: 10px;
  max-width: ;
  margin: -10px auto 20px;
  padding: 20px;
  border: 2px solid #efefef;
  max-width: 500px;
  border-radius: 8px;
   font-family: "Inter Tight", sans-serif!important;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  }

#amountDisplay{
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-nav{border-bottom:0!important;}

/* ==========================================================================
   ENHANCED TAB STYLING
   ========================================================================== */

/* Enhanced Tab Styling - Add to your CSS */
.form-nav {
    display: flex;
    margin-bottom: 30px;
    border-bottom: none; /* Remove the old border */
    justify-content: center;
    gap: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 16px;
}

/* Completed step (with checkmark) */
.nav-item.completed {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
}

/* Active step */
.nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Hover effect */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
}

/* Step numbering icons */
.nav-item[data-step="1"]:before,
.nav-item[data-step="2"]:before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}

/* Active step icon */
.nav-item.active[data-step]:before {
    background: white;
    color: #3b82f6;
}

/* Completed step icon - hide the number since we have checkmark */
.nav-item.completed[data-step]:before {
    display: none;
}

/* Inactive step icon */
.nav-item:not(.active):not(.completed)[data-step]:before {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Checkmark styling */
.nav-item.completed .fas.fa-check {
    color: #10b981;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 8px;
}

/* Amount text styling */
.amount-text {
    color: white !important;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .form-nav {
        flex-direction: column;
        gap: 12px;
        padding: 24px;
    }
    
    .nav-item {
        justify-content: center;
        font-size: 14px;
    }
}

/* ==========================================================================
   ENHANCED NAV LAYOUT
   ========================================================================== */

/* new more */
.form-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: none;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#amountDisplay {
    background: none !important;
    border: none !important;
    color: white !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-tabs-row {
    display: flex;
    gap: 24px;
}

/* ==========================================================================
   FIXED STYLING FOR FORM NAVIGATION
   ========================================================================== */

/* Fixed styling for the form navigation */
.form-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: none;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Remove ALL styling from the contribution text that creates the oval */
#amountDisplay {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: white !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    width: auto !important;
    max-width: none !important;
}

/* Create a wrapper div for nav items to display side by side */
.nav-items-wrapper {
    display: flex;
    gap: 24px;
    justify-content: center;
}

/* Style the individual nav items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 16px;
}

/* Completed step styling */
.nav-item.completed {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Active step styling */
.nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover effect */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
}

/* Step numbering icons */
.nav-item[data-step="1"]:before,
.nav-item[data-step="2"]:before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}

/* Active step icon */
.nav-item.active[data-step]:before {
    background: white;
    color: #3b82f6;
}

/* Completed step icon - hide the number since we have checkmark */
.nav-item.completed[data-step]:before {
    display: none;
}

/* Inactive step icon */
.nav-item:not(.active):not(.completed)[data-step]:before {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Checkmark styling */
.nav-item.completed .fas.fa-check {
    color: #10b981;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 8px;
}

/* Amount text styling */
.amount-text {
    color: white !important;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 640px) {
    #amountDisplay {
        font-size: 1.4rem;
        margin-bottom: 20px !important;
    }
    
    .form-nav {
        padding: 24px;
    }
    
    .nav-items-wrapper {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .nav-item {
        justify-content: center;
        font-size: 14px;
    }
}

/* Fix for white text on "Your Information" */
.nav-item span {
    color: white !important; /* Override any inline styles */
}

/* Ensure all nav-item text is white */
.nav-item,
.nav-item * {
    color: white !important;
}

/* ==========================================================================
   COMPLETE FIX FOR NAVIGATION STYLING
   ========================================================================== */

/* Complete fix for navigation styling */

/* Remove all underlines from nav items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important; /* Remove underline */
    color: white;
    font-size: 16px;
}

/* Ensure all text in nav items is white */
.nav-item,
.nav-item *,
.nav-item span {
    color: white !important;
    text-decoration: none !important;
}

/* Completed step styling - with proper checkmark */
.nav-item.completed {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Active step styling - better highlight */
.nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4); /* Add border for better active state */
}

/* Hover effect */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    text-decoration: none !important;
}

/* Hide step numbers when there's a checkmark (completed state) */
.nav-item.completed[data-step]:before {
    display: none !important;
}

/* Hide step numbers for active state with checkmark */
.nav-item.completed .fas.fa-check ~ span:before {
    display: none !important;
}

/* Step numbering icons - only show when NOT completed */
.nav-item:not(.completed)[data-step="1"]:before,
.nav-item:not(.completed)[data-step="2"]:before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}

/* Active step icon (when not completed) */
.nav-item.active:not(.completed)[data-step]:before {
    background: white;
    color: #3b82f6;
}

/* Inactive step icon */
.nav-item:not(.active):not(.completed)[data-step]:before {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Proper checkmark styling - ensure it's visible and styled correctly */
.nav-item.completed .fas.fa-check {
    color: white !important;
    background: #10b981 !important;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 8px;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Amount text styling */
.amount-text {
    color: white !important;
    font-weight: 600;
}

/* Ensure the completed state overrides any other pseudo-elements */
.nav-item.completed {
    position: relative;
}

/* Hide any conflicting pseudo-elements on completed items */
.nav-item.completed::before {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .nav-item {
        justify-content: center;
        font-size: 14px;
    }
    
    .nav-item.active {
        border-width: 1px; /* Thinner border on mobile */
    }
}

.nav-item[data-section="details"] {
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   POLISHED FORM FIELD STYLING
   ========================================================================== */

/* Polished form field styling to match nav ovals */
.form-field {
    /* Keep existing size and basic properties */
    width: 100%;
    padding: 18px 20px !important;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    
    /* Enhanced styling to match nav ovals - with less blue borders */
    background: rgba(248, 250, 252, 0.9);
    border: 2px solid #e5e7eb; /* Changed to neutral gray */
    border-radius: 8px; /* Keep your preferred border radius */
    backdrop-filter: blur(10px);
    
    /* Subtle shadow like the nav items */
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    
    /* Smooth transitions */
    transition: all 0.3s ease;
    
    /* Text styling */
    color: #1e293b;
}

/* Enhanced focus state */
.form-field:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #3b82f6; /* Keep blue for focus state */
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* Hover state */
.form-field:hover:not(:focus) {
    background: rgba(255, 255, 255, 0.8);
    border-color: #d1d5db; /* Subtle gray hover */
    box-shadow: 
        0 2px 8px -2px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Revert to original label styling */
.fieldLabel {
    display: block;
    margin: 3px 0 3px 0px;
    color: #111111;
    /*font-family: 'Roboto', sans-serif !important;*/
    /*font-size: clamp(14px, 1.6vw + 8.6px, 18px);*/
    line-height: 1.2;
    transition: color 0.2s ease-in-out;
}

/* Focus state for labels */
.form-unit.is-focused .fieldLabel {
    color: #009CDE;
}

/* Special styling for select dropdowns */
select.form-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 50px;
}

/* Error state styling */
.input-validation-error {
    background: rgba(254, 242, 242, 0.9) !important;
    border-color: #ef4444 !important;
    box-shadow: 
        0 0 0 3px rgba(239, 68, 68, 0.1),
        0 2px 4px -1px rgba(239, 68, 68, 0.1) !important;
}

.input-validation-error:focus {
    box-shadow: 
        0 0 0 3px rgba(239, 68, 68, 0.2),
        0 4px 12px rgba(239, 68, 68, 0.15) !important;
}

/* Enhanced form group spacing */
.form-group {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-unit {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

/* Enhanced validation error styling */
.field-validation-error {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 12px;
    padding: 6px 12px;
}

/* Enhanced submit button to match the overall theme */
.submit-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 24px auto;
    display: block;
    
    /* Match the nav oval styling */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.submit-button:active {
    transform: translateY(0);
}

/* Enhanced payment section styling */
#paymentSurround {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .form-field {
        padding: 16px 18px !important;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-group {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .submit-button {
        padding: 14px 24px;
        margin: 20px auto;
    }
}

/* ==========================================================================
   ENHANCED AMOUNT SELECTION SECTION
   ========================================================================== */

/* Enhanced Amount Selection Section */
#amountsSection {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

#amountsTitle {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e293b;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Enhanced amount buttons */
.amountLink {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    /*color: white;*/
    font-size: clamp(16px, 2.5vw, 22px);
   font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
    padding: 5px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* Enhanced shadow and styling */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    
    /* Default gradient (for red buttons) */
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    
    /* Ensure consistent height for all amount buttons */
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Other Amount button styling - same red as others by default */
#otherAmount {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    min-height: 60px;
}

/* Selected state */
.amountLink.selected {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

/* Hover effects */
.amountLink:hover:not(.selected) {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.1);
    /*color: white;*/
    text-decoration: none;
}

/* Enhanced grid layout */
#amountsWrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 auto;
    max-width: 500px;
}

/* Payment Methods Section */
.section-label {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #1e293b;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced payment buttons */
.payment-button {
    padding: 24px;
    border: none;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    /* Enhanced styling */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Selected payment button */
.payment-button.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Payment button hover */
.payment-button:hover:not(.selected) {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom amount form styling */
#otherAmountForm {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 12px;
}

.other-amount-input-group {
    display: flex;
    gap: 8px;
    height: 100%;
    padding: 8px;
}

.amount-input-wrapper {
    position: relative;
    flex: 1;
}

.dollar-sign {
    position: absolute;
    left: 12px;
    top: 40%;
    transform: translateY(-50%);
    color: #374151;
    z-index: 1;
    font-weight: 600;
}

#customAmount {
    width: 100%;
    height: 80%;
    padding: 12px 12px 12px 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Open Sans Condensed', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    box-sizing: border-box;
}

#customAmount:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

#setCustomAmount {
    height: 80%;
    width: 48px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#setCustomAmount:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    #amountsSection {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    #amountsTitle {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    #amountsWrapper {
        gap: 12px;
    }
    
    .amountLink {
        padding: 8px 16px; /* Less tall on mobile */
        /*font-size: 24px;*/ /* Larger text on mobile */
        font-family: 'Open Sans Condensed', sans-serif;
    }
    
    .section-label {
        font-size: 20px;
        margin: 32px 0 16px;
    }
    
    .payment-button {
        padding: 16px 20px;
        /*font-size: 16px;*/
    }
    
    .payment-options {
        gap: 12px;
        margin: 24px 0;
    }
}

/* Enhance the overall container */
#step-select {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 
        0 8px 25px -5px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    #step-select {
        padding: 24px;
        border-radius: 16px;
    }
}

.payment-button{font-family: 'Inter Tight', sans-serif!important;  font-weight:800!important;/*font-size: 24px;*/}
.section-label{font-family:'Inter Tight'; font-weight:800!important; font-size: 24px;}

@media (max-width: 550px) {
#otherAmount{line-height:1.3em;}
    }

#ZipUnit > .field-validation-error {
    margin-top: -5px;
    position: relative;
    bottom: auto;
    left: auto;
    display: block;
}

.amountLink{font-size:20px!important;}

@media (max-width: 350px) {
  #otherAmountContainer {
    grid-column: 1 / -1; /* Span the full width of the grid */
    order: 99;           /* Push to the end of the grid */
    min-height: 60px;
  }
}

/* ==========================================================================
   IPHONE-SPECIFIC RESPONSIVE IMPROVEMENTS
   ========================================================================== */

/* iPhone and small mobile devices (375px and below - covers iPhone SE, etc.) */
@media (max-width: 375px) {
    /* More compact form fields */
    .form-field {
        padding: 12px 14px !important;
        font-size: 16px; /* Keep at 16px to prevent zoom on iOS */
        min-height: 44px; /* Apple's recommended minimum touch target */
        height: auto !important;
    }
    
    /* Reduce form group spacing */
    .form-group {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    /* Make labels more compact */
    .fieldLabel {
        font-size: 14px;
        margin: 2px 0 4px 0px;
        line-height: 1.3;
    }
    
    /* Compact form navigation */
    .form-nav {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    #amountDisplay {
        font-size: 1.3rem;
        margin-bottom: 16px !important;
        padding: 16px;
    }
    
    .nav-items-wrapper {
        gap: 12px;
    }
    
    .nav-item {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    /* Compact amount section */
    #amountsSection {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    #amountsTitle {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    #amountsWrapper {
        gap: 10px;
    }
    
    .amountLink {
        padding: 10px 12px;
        font-size: 18px;
        border-radius: 8px;
        min-height: 60px;
    }
    
    /* Payment buttons */
    .payment-button {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .section-label {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    
    /* Submit button */
    .submit-button {
        padding: 12px 20px;
        margin: 16px auto;
        max-width: 280px;
    }
    
    /* Payment surround */
    #paymentSurround {
        padding: 16px;
        margin: 16px 0;
        border-radius: 8px;
    }
    
    /* Step containers */
    #step-select {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    /* Make custom amount input more compact */
    #customAmount {
        padding: 10px 10px 10px 26px;
        font-size: 18px;
    }
    
    .dollar-sign {
        left: 10px;
        font-size: 16px;
    }
    
    #setCustomAmount {
        width: 40px;
    }
    
    /* Validation errors */
    .field-validation-error {
        font-size: 12px;
        margin-top: 6px;
        padding: 4px 8px;
    }
    
    /* Contact options */
    .contact-options-container {
        padding: 12px 0;
    }
    
    .contact-option-item {
        margin-bottom: 8px;
    }
    
    .contact-option-item label {
        font-size: 14px;
        line-height: 1.3;
    }
    
    /* Even more compact State on smaller iPhones */
    #StateUnit {
        flex: 0 0 110px;
        max-width: 110px;
    }
    
    /* City gets the most space */
    #CityUnit {
        flex: 2.5;
    }
    
    /* Zip stays compact but functional */
    .zipUnit {
        flex: 0 0 95px;
        max-width: 95px;
        min-width: 85px;
    }
    
    /* Keep labels readable */
}

/* Very small screens (350px and below - handles older/smaller devices) */
@media (max-width: 350px) {
    .form-field {
        padding: 10px 12px !important;
        min-height: 42px;
    }
    
    .form-group {
        gap: 6px;
        margin-bottom: 14px;
    }
    
    .fieldLabel {
        font-size: 13px;
        margin: 1px 0 3px 0px;
    }
    
    .form-nav {
        padding: 16px 12px;
    }
    
    .nav-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    #amountDisplay {
        font-size: 1.2rem;
        padding: 12px;
    }
    
    #amountsSection {
        padding: 16px 12px;
    }
    
    #amountsTitle {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .amountLink {
        padding: 8px 10px;
        font-size: 16px;
        min-height: 60px;
    }
    
    .payment-button {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .section-label {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    #step-select {
        padding: 16px 12px;
    }
    
    /* Ultra-compact for very small screens */
    #StateUnit {
        flex: 0 0 100px;
        max-width: 100px;
    }
    
    #CityUnit {
        flex: 2;
    }
    
    .zipUnit {
        flex: 0 0 85px;
        max-width: 85px;
        min-width: 80px;
    }
    
    /* Maintain label readability even on smallest screens */
}

/* Landscape orientation optimizations for iPhones */
@media (max-height: 500px) and (orientation: landscape) {
    .form-nav {
        padding: 12px 20px;
        margin-bottom: 16px;
    }
    
    #amountDisplay {
        font-size: 1.2rem;
        margin-bottom: 12px !important;
    }
    
    .nav-items-wrapper {
        gap: 16px;
    }
    
    .nav-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    #amountsSection {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-field {
        padding: 10px 14px !important;
    }
    
    /* Landscape orientation - give State a bit more room when horizontal space is available */
    #StateUnit {
        flex: 0 0 140px;
        max-width: 140px;
    }
    
    #CityUnit {
        flex: 2;
    }
    
    .zipUnit {
        flex: 0 0 110px;
        max-width: 110px;
    }

}

/* Ensure proper touch targets on all iOS devices */
@media (max-width: 480px) {
    /* Ensure all interactive elements meet Apple's 44px minimum */
    .amountLink,
    .payment-button,
    .submit-button,
    .form-field,
    input[type="checkbox"] {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Exception for checkboxes - they can be smaller but need proper spacing */
    input[type="checkbox"] {
        min-height: 20px;
        width: 20px;
        margin: 12px 10px 12px 0; /* Add margin to increase touch area */
    }
    
    /* Ensure labels have enough space around them */
    .contact-option-item {
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Make sure the Other Amount container works well on small screens */
    #otherAmountContainer {
        min-height: 44px;
    }
    
    .other-amount-input-group {
        padding: 2px;
    }
    
    #customAmount {
        min-height: 40px;
    }
    
    #setCustomAmount {
        min-height: 40px;
        min-width: 40px;
    }
    
    /* Make State dropdown take less space */
    #StateUnit {
        flex: 0 0 120px; /* Fixed width instead of flex: 1 */
        max-width: 120px;
    }
    
    /* Give City more space */
    #CityUnit {
        flex: 2; /* Takes more space than State */
        min-width: 0;
    }
    
    /* Zip keeps its current styling but ensure it has enough space */
    .zipUnit {
        flex: 0 0 100px;
        max-width: 100px;
        min-width: 90px;
    }
    
    /* Larger labels on mobile for better readability */
    .fieldLabel {
        margin: 3px 0 6px 0px;
        line-height: 1.3;
    }
}

/* Ensure consistent height even on smallest screens */
@media (max-width: 550px) {
    .amountLink,
    #otherAmount {
        min-height: 90px !important;
    }
}


/* Enhanced checkbox list styling */
.contact-options-container {
    box-shadow: none !important;
    padding: 20px 0 !important;
    background-color: rgba(248, 250, 252, 0.9);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.contact-options-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.contact-option-item {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

.contact-option-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
}

.contact-option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.contact-option-item label {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .contact-options-container {
        padding: 16px;
        margin: 16px 0;
        display: flex;
        justify-content: center;
    }
    
    .contact-options-list {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        width: auto;
        max-width: 100%;
    }
    
    .contact-option-item {
        padding: 12px;
        flex: 0 0 auto;
        width: auto;
    }
    
    .contact-option-item label {
        font-size: 14px;
        white-space: normal;
    }
}

.nav-item{font-family:'Inter Tight', sans-serif; font-weight:800;}

.processing-fee-checkbox {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
    font-family:'Inter Tight', sans-serif!important; 
    font-weight: 800;
    font-size: clamp(14px, 3.5vw, 18px);
}

.processing-fee-checkbox:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
}

.processing-fee-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.processing-fee-checkbox label {
    font-size: 20px;
    font-family:'Inter Tight', sans-serif!important; 
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.processing-fee-section {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #fff;
    text-align: center;
}

.processing-fee-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #111;
}

.processing-fee-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.formButton {
  /*background: linear-gradient(135deg, #4cac55 0%, #56C44F 100%);
    background-color: rgba(0, 0, 0, 0);*/
  color: white;
  padding: 18px 32px;
  border: none;
  border-radius: 8px;
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin: 24px auto;
  display: block;
  font-family: 'Inter Tight', sans-serif;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.5px;
  }

.formButton:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
    /*background: linear-gradient(135deg, #56C44F 0%, #4cac55 100%);*/
}

.formButton:active {
    transform: translateY(0);
    /*background: linear-gradient(135deg, #4cac55 0%, #56C44F 100%);*/
}

.contribution-limit-notice {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 4px;
    font-size: 0.9em;
}

.contribution-limit-notice i {
    margin-right: 5px;
    color: #007bff;
}

.payment-message--warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.contact-options-list {
    display: flex;
    flex-direction: column; /* Changed from row */
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.contact-option-item {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1 1 auto; /* Changed from 0 0 auto */
    min-width: 0;
    white-space: normal; /* Changed from nowrap */
    display: flex;
    align-items: flex-start; /* Changed from center */
    width: 100%; /* Add this to ensure full width */
}

.contact-option-item label {
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
    white-space: normal; /* Changed from nowrap */
    margin: 0;
    /* Remove overflow and text-overflow properties */
}

.contact-options-container {
    padding: 10px 32px 10px 10px;
       max-width: calc(100% - 40px); /* Leaves 16px margin on each side */
}

.payment-options{gap:0;}
.payment-button.formButton{margin: 8px auto !important;  padding: 25px;}

/* Collapsed state for amounts section */
#amountsSection.collapsed {
    padding: 16px 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    transition: all 0.4s ease;
}

#amountsSection.collapsed #amountsTitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center; 
    cursor: pointer;
     flex-direction: column;
}

#amountsSection.collapsed #amountsTitle:hover {
    color: #3b82f6;
}

#amountsSection.collapsed #amountsWrapper {
    display: none;
}

/* Change amount link styling */
.change-amount-link {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.change-amount-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.change-amount-link i {
    font-size: 12px;
}

/* Smooth transitions */
#amountsSection {
    transition: all 0.4s ease;
}

#amountsWrapper {
    transition: opacity 0.3s ease;
}

/* Enhanced payment methods when amount is selected */
.payment-methods-enhanced {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Updated collapsed title styling */
#amountsSection.collapsed #amountsTitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px; /* Add gap between amount and change link */
    cursor: default; /* Remove pointer cursor from title */
}

/* Simplified collapsed title styling */
#amountsSection.collapsed #amountsTitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

/* Clickable selected amount styling */
.selected-amount-clickable {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.selected-amount-clickable:hover {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.selected-amount-clickable:active {
    transform: translateY(0);
}

/* Add this CSS to your contribution-form.css file */

.processing-fee-section {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.processing-fee-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    gap: 8px;
    /* Allow text to wrap naturally */
    flex-wrap: wrap;
}

.processing-fee-checkbox input[type="checkbox"] {
    margin: 0;
    margin-top: 2px; /* Align with first line of text */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.processing-fee-checkbox .checkmark {
    flex-shrink: 0; /* Prevent custom checkmark from shrinking if you're using one */
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .processing-fee-checkbox {
        font-size: 13px;
        line-height: 1.5;
        align-items: flex-start;
    }
    
    .processing-fee-section {
        margin: 0.75rem 0;
        padding: 0.75rem;
    }
    
    /* Ensure the text portion can wrap */
    .processing-fee-checkbox span:not(.checkmark) {
        flex: 1;
        min-width: 0; /* Allow text to wrap */
        word-wrap: break-word;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .processing-fee-checkbox {
        font-size: 12px;
        gap: 6px;
    }
    
    .processing-fee-section {
        margin: 0.5rem 0;
        padding: 0.5rem;
    }
}