/* =============================================================================
   TEXAS ENERGY ENROLLMENT FORM - CLEAN CSS
   ============================================================================= */

:root {
    /* Primary Colors */
    --primary-blue: #3b82f6;
    --success-green: #44b75e;
    --white: #ffffff;
    --black: #101827;

    /* Text Colors */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;

    /* Background & Borders */
    --background-light-gray: #f3f4f6;
    --border-color: #d9d9d9;

    /* Legacy color mappings (for backward compatibility) */
    --color-primary: var(--primary-blue);
    --color-secondary: var(--text-dark);
    --color-text-dark: var(--black);
    --color-text-light: var(--white);
    --color-background-light: var(--white);
    --color-background-grey: var(--background-light-gray);
    --color-border: var(--border-color);
    --color-success: var(--success-green);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: transparent;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

/* =============================================================================
   LAYOUT & CONTAINERS
   ============================================================================= */
.container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    padding-right: 100px;
}

@media (max-width: 1200px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =============================================================================
   HEADER SECTION
   ============================================================================= */
#header {
    background-color: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    position: relative;
}

.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.back-button {
    display: none;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo,
.logo-icon {
    height: 64px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.phone-button {
    display: none;
}

/* Hamburger Menu */
.hamburger-menu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-button {
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    padding: 0;
}

.hamburger-button:hover {
    border-color: var(--primary-blue);
    background-color: rgba(59, 130, 246, 0.05);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-button:hover .hamburger-line {
    background-color: var(--primary-blue);
}

/* Hamburger animation when open */
.hamburger-button.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-button.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-button.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Dropdown Menu */
.hamburger-dropdown {
    position: absolute;
    top: 54px;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.hamburger-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hamburger-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f8fafc;
    color: var(--primary-blue);
}

.menu-item-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.menu-item:hover .menu-item-icon {
    opacity: 1;
}

@media (max-width: 768px) {
    #header {
        height: 60px;
    }

    .site-header {
        justify-content: center;
        padding: 0 15px;
    }

    .main-logo,
    .logo-icon {
        height: 44px;
        max-width: 180px;
    }

    .hamburger-menu {
        right: 15px;
    }

    .hamburger-button {
        width: 40px;
        height: 40px;
        border-width: 1px;
    }

    .hamburger-line {
        width: 18px;
        height: 2px;
    }

    .hamburger-dropdown {
        top: 50px;
        min-width: 140px;
    }

    .menu-item {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* =============================================================================
   MAIN CONTENT SECTION
   ============================================================================= */
#main-content {
    position: relative;
    padding: 50px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-image: url('https://instant.pxcode.io/api/pages/b368aa00-aea8-4075-bbf9-05589c6dc680/images/20de333a6ea1268daaaf0c3cd4e19a863d28f359.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.main-background {
    display: none;
}

.main-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
}

/* =============================================================================
   STATUS BAR
   ============================================================================= */
.status-bar-wrapper,
.status-bar-container {
    width: 100%;
    max-width: 600px;
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0px 25px 50px 0px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
}

.status-bar-background,
.status-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.status-bar-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 12.5%;
    background-color: var(--success-green);
    border-radius: 10px;
    transition: width 0.8s ease-in-out;
}

/* Progress bar shimmer animation */
.status-bar-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Step-specific progress widths */
#step1 .status-bar-progress { width: 12.5%; }
#step2 .status-bar-progress { width: 25%; }
#step3 .status-bar-progress { width: 43%; }
#step4 .status-bar-progress { width: 60%; }
#step5 .status-bar-progress { width: 75%; }
#step6 .status-bar-progress { width: 90%; }
#step7 .status-bar-progress { width: 100%; }

/* =============================================================================
   FORM CARD
   ============================================================================= */
.enrollment-form-card {
    width: 100%;
    max-width: 600px;
    padding: 65px 60px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: 15px;
    box-shadow: 0px 10px 35px 0px rgba(16, 24, 39, 0.1);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enrollment-form-card.step5-form {
    max-width: 600px;
    padding: 50px 40px;
    gap: 32px;
}

@media (max-width: 768px) {
    .enrollment-form-card {
        padding: 40px 20px;
    }

    .enrollment-form-card.step5-form {
        padding: 30px 15px;
    }
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
.form-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 38px;
    text-align: center;
    color: var(--text-dark);
    margin: 0;
}

.customer-info-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 30px;
    color: var(--primary-blue);
    text-align: center;
    margin: 0;
}

.form-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-top: -31px;
}

.form-instructions {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    text-align: center;
    margin: 0;
    max-width: 480px;
    align-self: center;
}

/* =============================================================================
   FORM ELEMENTS
   ============================================================================= */
.form-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.customer-info-header {
    border-bottom: 1px solid #dfe3e8;
    padding-bottom: 16px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 13px;
    position: relative;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    background-color: var(--background-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.input-icon {
    flex-shrink: 0;
}

.text-input,
.form-input {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.text-input::placeholder,
.form-input::placeholder {
    color: var(--border-color);
}

.text-input:focus,
.form-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Step 4 specific form styles */
#step4 .form-input {
    width: 100%;
    padding: 17px 21px;
    background-color: var(--background-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
}

#step4 .form-input::placeholder {
    color: var(--text-dark);
    opacity: 1;
}

#step4 .name-fields {
    display: flex;
    gap: 10px;
}

#step4 .name-fields .form-input {
    flex: 1;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
    flex-grow: 1;
    padding: 18px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.18px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--black);
    color: var(--text-dark);
    flex-basis: 147px;
    flex-grow: 0;
}

/* Step 1 Upload Buttons */
.upload-button,
.manual-entry-button {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    min-height: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    filter: brightness(1) saturate(1) grayscale(0);
    margin-bottom: 15px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.upload-button img {
    transition: transform 0.3s ease;
}

.manual-entry-button {
    border-style: solid;
}

/* Desktop hover behavior */
@media (hover: hover) and (pointer: fine) {
    .form-fields:hover .upload-button:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
        border-color: #2563eb;
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        z-index: 10;
    }

    .form-fields:hover .upload-button:hover img {
        transform: scale(1.1) rotate(-5deg);
    }

    .form-fields:hover .upload-button:hover ~ .manual-entry-button {
        filter: brightness(0.6) saturate(0.3) grayscale(0.7);
        transform: translateY(0) scale(0.98);
        opacity: 0.4;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .form-fields:hover .manual-entry-button:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
        border-color: #2563eb;
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        z-index: 10;
    }

    @supports selector(:has(*)) {
        .form-fields:has(.manual-entry-button:hover) .upload-button {
            filter: brightness(0.6) saturate(0.3) grayscale(0.7);
            transform: translateY(0) scale(0.98);
            opacity: 0.4;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
    }
}

/* Mobile touch behavior */
@media (hover: none) and (pointer: coarse) {
    .upload-button:active,
    .manual-entry-button:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        border-color: #2563eb;
    }

    .upload-button,
    .manual-entry-button {
        min-height: 60px;
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* Process and utility buttons */
.process-button {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.process-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.retry-button {
    padding: 8px 16px;
    background-color: var(--text-light);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.manual-address-button {
    width: 100%;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--text-light);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.manual-address-button:hover {
    background-color: var(--background-light-gray);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.signup-button {
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.signup-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* =============================================================================
   FORM ACTIONS
   ============================================================================= */
.form-actions {
    display: flex;
    gap: 16px;
    padding-top: 8px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 19px;
}

@media (max-width: 480px) {
    .form-actions,
    .button-group {
        flex-direction: column;
    }
    
    .form-actions:has(.btn-secondary) {
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    #step1 .form-actions {
        flex-direction: column !important;
    }
    
    .btn-secondary {
        flex-basis: auto;
        font-size: 14px !important;
        padding: 16px 12px !important;
    }
    
    .btn-primary {
        font-size: 14px !important;
        padding: 16px 12px !important;
    }
    
    #step1 .btn-primary {
        font-size: 18px !important;
        padding: 18px 32px !important;
    }
}

/* =============================================================================
   FORM INPUTS & CHECKBOXES
   ============================================================================= */
.form-checkbox,
.form-radio {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #3b82f6;
    transition: all 0.2s ease;
}

.form-checkbox:checked,
.form-radio:checked {
    transform: scale(1.1);
    animation: checkBounce 0.3s ease;
}

@keyframes checkBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.checkbox-row:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.checkbox-label {
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.12px;
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
}

/* Step 4 specific checkbox styles */
#step4 .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

#step4 .checkbox-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    margin-top: 2px;
}

#step4 .checkbox-label {
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.12px;
}

#step4 .text-link {
    color: var(--primary-blue);
    text-decoration: underline;
}

#step4 .terms-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#step4 .terms-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}

/* Radio buttons */
.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--background-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option .radio-icon {
    width: 21px;
    height: 21px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    font-weight: 600;
    color: #3b82f6;
}

.radio-label {
    font-size: 14px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Language options */
.language-options {
    display: flex;
    gap: 17px;
}

@media (max-width: 768px) {
    .language-options {
        flex-direction: column;
        gap: 15px;
    }

    .checkbox-row,
    .terms-option {
        padding: 15px;
    }

    .radio-option {
        padding: 15px;
    }
}

/* =============================================================================
   PRODUCT SUMMARY CARD
   ============================================================================= */
.product-summary-card {
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    box-shadow: 0px 10px 35px 0px rgba(16, 24, 39, 0.1);
    overflow: hidden;
    align-self: center;
    transition: all 0.3s ease;
    animation: cardSlideIn 0.7s ease-out;
}

#step5 .product-summary-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#step5.data-ready .product-summary-card {
    opacity: 1;
    transform: translateY(0);
}

#step5 .info-section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

#step5.data-ready .info-section {
    opacity: 1;
    transform: translateY(0);
}

#step5.data-ready .info-section:nth-child(1) { transition-delay: 0.1s; }
#step5.data-ready .info-section:nth-child(2) { transition-delay: 0.2s; }
#step5.data-ready .info-section:nth-child(3) { transition-delay: 0.3s; }
#step5.data-ready .info-section:nth-child(4) { transition-delay: 0.4s; }
#step5.data-ready .info-section:nth-child(5) { transition-delay: 0.5s; }
#step5.data-ready .info-section:nth-child(6) { transition-delay: 0.6s; }

.product-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #3b82f6 0%, #347594 100%);
    padding: 22px 30px;
    color: var(--text-white);
    font-weight: 700;
    font-size: 20px;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.plan-duration,
.plan-duration-badge {
    border: 1px solid var(--white);
    border-radius: 10px;
    padding: 8px 11px;
}

.plan-duration-badge {
    padding: 8px 22.5px;
    font-size: 20px;
    font-weight: 700;
}

.product-body {
    display: flex;
    background-color: var(--white);
    padding: 0 20px;
}

.product-details-left,
.product-details {
    display: flex;
    gap: 15px;
    padding: 30px 0;
    flex-grow: 1;
}

.supplier-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.supplier-label {
    font-size: 12px;
    color: var(--text-dark);
    margin: 0;
}

.supplier-logo {
    width: 137px;
    height: 49px;
    object-fit: contain;
    margin: 0 auto; 
    display: block;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--black);
}

.feature-item img {
    width: 16px;
    height: 16px;
}

.feature-item > span:first-of-type {
    margin-left: 10px;
}

.view-details-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--primary-blue);
    font-size: 12px;
    margin-top: 12px;
    transition: opacity 0.3s ease;
}

.view-details-link:hover {
    opacity: 0.8;
}

.product-details-right,
.product-pricing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 30px 0 30px 20px;
    border-left: 1px solid #e5e7eb;
    text-align: center;
}

.price-info,
.bill-info,
.price-main,
.price-avg {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 12px;
    margin: 0;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-amount {
    font-size: 45px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.price-unit {
    font-size: 18px;
    color: var(--text-light);
}

.bill-amount,
.avg-bill-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
    margin: 0;
}

.bill-label,
.avg-bill-label {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 768px) {
    .product-body {
        flex-direction: column;
    }

    .product-details-right,
    .product-pricing {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding: 20px 0;
        align-items: center;
    }

    .product-details-left,
    .product-details {
        flex-direction: column;
        align-items: center;
    }
}

/* =============================================================================
   INFO SECTIONS (STEP 5 & 6)
   ============================================================================= */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 17px;
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s ease-out forwards;
}

.info-section:nth-child(1) { animation-delay: 0.1s; }
.info-section:nth-child(2) { animation-delay: 0.2s; }
.info-section:nth-child(3) { animation-delay: 0.3s; }
.info-section:nth-child(4) { animation-delay: 0.4s; }
.info-section:nth-child(5) { animation-delay: 0.5s; }
.info-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--black);
    margin: 0;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    background-color: var(--background-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 12px;
    color: var(--black);
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    background: transparent;
    border: none;
    padding: 8px 12px;
    margin: 0;
    min-height: 1.2em;
    cursor: text;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.info-value:hover:not(.editing):not(.readonly) {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-value[tabindex="0"]:focus:not(.editing)::after {
    content: "Click to edit";
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    margin-top: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-value:not(.editing):not(.readonly)::before {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 2 4 4-14 14H4v-4z'/%3E%3Cpath d='m14.5 5.5-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.info-value:not(.editing):not(.readonly):hover::before {
    opacity: 1;
}

.info-value.editing {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.info-value.readonly {
    cursor: text;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    pointer-events: none;
}

.info-value[tabindex="0"] {
    outline: none;
}

.info-value[tabindex="0"]:focus {
    background-color: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.inline-edit-input {
    width: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font: inherit !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =============================================================================
   EDIT BUTTONS
   ============================================================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-section-header,
.terms-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px;
}

.edit-button {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-blue);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.edit-button::before {
    content: "✎";
    font-size: 14px;
    color: var(--primary-blue);
}

.edit-button:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.edit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.edit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.edit-button:hover::after {
    left: 100%;
}

.edit-success-flash {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.25) !important;
    transition: all 0.4s ease !important;
    animation: glassSuccessPulse 0.8s ease-out;
}

@keyframes glassSuccessPulse {
    0% {
        transform: scale(1);
        backdrop-filter: blur(10px);
    }
    50% {
        transform: scale(1.03);
        backdrop-filter: blur(15px);
    }
    100% {
        transform: scale(1);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 768px) {
    .edit-button {
        padding: 8px 14px;
        font-size: 11px;
        gap: 5px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .edit-button::before {
        font-size: 12px;
    }

    .edit-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
    }

    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
}

/* =============================================================================
   TOGGLE SWITCH
   ============================================================================= */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.toggle-container:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.toggle-container.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: #10b981;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active::after {
    transform: translateX(28px);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.status-indicator.accepted {
    color: #059669;
}

.status-indicator.pending {
    color: #9ca3af;
}

.terms-text {
    font-size: 12px;
    line-height: 20px;
    color: #374151;
    letter-spacing: 0.12px;
}

/* Terms & Conditions */
.terms-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-option:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
}

.terms-option input[type="checkbox"] {
    display: none;
}

.terms-option .checkbox-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    margin-top: 3px;
}

.terms-option p {
    font-size: 12px;
    line-height: 20px;
    color: var(--text-dark);
    margin: 0;
}

/* =============================================================================
   VERIFICATION SECTIONS (STEP 2)
   ============================================================================= */
.verification-section {
    margin-bottom: 15px;
}

.verification-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.verification-section .input-wrapper {
    background-color: var(--background-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.verification-section .input-wrapper span {
    flex-grow: 1;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.confirmed-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

/* Highlighting for missing info */
.highlighted {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    animation: missingInfoPulse 2s infinite;
}

@keyframes missingInfoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.verification-section.highlighted {
    border: 2px solid #f59e0b !important;
    border-radius: 8px !important;
    background-color: #fef3c7 !important;
    position: relative;
    padding: 15px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease;
}

.verification-section.highlighted::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -8px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@media (max-width: 768px) {
    .verification-section .section-header {
        gap: 10px;
    }

    .section-label {
        font-size: 12px;
    }
}

/* =============================================================================
   IMAGE PREVIEW & LOADING STATES
   ============================================================================= */
.image-preview {
    display: none;
    margin-top: 15px;
    text-align: center;
    padding: 20px 20px 30px 20px;
    background-color: var(--background-light-gray);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.image-preview.show {
    display: block;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.loading-container {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-container.show {
    display: block;
}

.loading-wave {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 40px;
    margin: 20px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-bar {
    width: 8px;
    height: 10px;
    margin: 0 2px;
    background-color: var(--primary-blue);
    border-radius: 4px;
    animation: loading-wave-animation 1s ease-in-out infinite;
}

.loading-bar:nth-child(2) { animation-delay: 0.1s; }
.loading-bar:nth-child(3) { animation-delay: 0.2s; }
.loading-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes loading-wave-animation {
    0% { height: 10px; }
    50% { height: 30px; }
    100% { height: 10px; }
}

.result-container {
    display: none;
    margin-top: 15px;
    padding: 20px;
    background-color: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 10px;
    text-align: center;
}

.result-container.show {
    display: block;
    animation: slideInResult 0.5s ease-out;
}

.result-container.error {
    background-color: #fef2f2;
    border-color: #ef4444;
}

.result-container.success {
    animation: float 3s ease-in-out infinite;
}

@keyframes slideInResult {
    from {
        opacity: 0;
        transform: translateY(20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.result-text {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.result-text.error {
    color: #dc2626;
}

.result-text.success {
    color: #059669;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* Extraction results */
.extraction-results {
    text-align: left;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.extraction-summary h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.extraction-summary div {
    margin: 5px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.extraction-success {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 8px;
    border: 1px solid #10b981;
}

/* =============================================================================
   MODALS
   ============================================================================= */
.address-modal,
.manual-entry-modal,
.edit-modal,
.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center !important;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
}

.modal-buttons .btn {
    flex: 1;
    max-width: 150px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

/* Enhanced modal with glassmorphism theme */
.edit-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.edit-modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.edit-modal h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.edit-form-group {
    margin-bottom: 15px;
}

.edit-form-label {
    display: block;
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

.edit-form-input,
.edit-form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(229, 231, 235, 0.3);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.edit-form-input:focus,
.edit-form-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.edit-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.edit-modal-buttons .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.edit-modal-buttons .btn-primary {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.edit-modal-buttons .btn-primary:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.edit-modal-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.edit-modal-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.manual-entry-modal .modal-content,
#manualEntryModal .modal-content {
    position: relative;
    margin: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
    text-align: center;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
}

.manual-entry-input,
.manual-address-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    box-sizing: border-box;
}

.manual-entry-input:focus,
.manual-address-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Terms modal specific */
.terms-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: termsModalSlideIn 0.4s ease-out;
}

@keyframes termsModalSlideIn {
    from {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.terms-text-large {
    font-size: 14px;
    line-height: 22px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: left;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}

.terms-checkbox-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.terms-checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.terms-checkbox-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.terms-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.terms-modal-buttons .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.terms-modal-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.terms-modal-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.terms-modal-buttons .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.terms-modal-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.terms-modal-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .terms-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .terms-modal-buttons,
    .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .terms-modal-buttons .btn,
    .modal-buttons .btn {
        width: 100%;
    }
}

/* =============================================================================
   ADDRESS SUGGESTIONS (MODERN)
   ============================================================================= */
#address-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    margin-top: 4px;
    z-index: 1060;
    max-height: 240px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    display: none;
    font-size: 14px;
    overflow-y: auto;
    overflow-x: hidden;
}

.address-suggestion-item {
    padding: 16px 20px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.address-suggestion-item:hover,
.address-suggestion-item.highlighted {
    background: #f0f9ff !important;
}

.address-suggestion-item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.address-suggestion-item:last-child {
    border-radius: 0 0 8px 8px;
}

.address-main {
    font-weight: 500;
    font-size: 15px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.address-details {
    display: none !important;
}

.verified-badge,
.cached-badge {
    background: #10b981 !important;
    color: white !important;
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    margin-left: 8px !important;
}

.address-suggestion-item:hover .verified-badge,
.address-suggestion-item.highlighted .verified-badge {
    background: #059669 !important;
}

.loading-suggestions,
.no-suggestions {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: technicalSpin 0.8s linear infinite;
    margin: 0 auto 8px;
}

@keyframes technicalSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.highlight-match {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    padding: 1px 3px;
    border-radius: 2px;
    text-decoration: none;
}

.address-suggestion-item:hover .highlight-match,
.address-suggestion-item.highlighted .highlight-match {
    background: #bfdbfe !important;
    color: #1d4ed8 !important;
}

.address-suggestion-item img,
.address-main img,
.address-details img {
    display: none !important;
}

#addressModal .modal-content {
    position: relative;
    overflow: visible;
}

#addressModal .input-container {
    position: relative;
    margin-bottom: 20px;
}

#addressModal .manual-address-input {
    width: 100%;
    margin-bottom: 0 !important;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

#addressModal .manual-address-input.has-suggestions {
    border-radius: 8px 8px 0 0 !important;
    border-bottom-color: transparent !important;
}

#addressModal .modal-content {
    display: flex;
    flex-direction: column;
}

#addressModal .modal-content h3 {
    order: 1;
    margin-bottom: 10px;
}

#addressModal .modal-content p {
    order: 2;
    margin-bottom: 20px;
}

#addressModal .input-container {
    order: 3;
    position: relative;
}

#addressModal .modal-buttons {
    order: 4;
    margin-top: 20px;
}

/* =============================================================================
   ESIID SEARCH STYLES
   ============================================================================= */

#manualEntryModal {
    position: relative !important;
    z-index: 1000 !important;
    width: min(600px, 95vw) !important;
    max-width: 95vw !important;
    height: auto !important;
    max-height: 90vh !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 15px !important;
    box-shadow: none !important;
}

#manualEntryModal .modal-content {
    position: relative !important;
    overflow: visible !important;
    z-index: 1001 !important;
    width: 100% !important;
    height: auto !important;
    padding: clamp(20px, 5vw, 30px) !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

#manualEntryModal * {
    box-sizing: border-box;
}

#manualEntryModal .modal-content > * {
    margin-bottom: 0;
}

#manualEntryModal .modal-content > *:not(:last-child) {
    margin-bottom: 20px;
}

#manualEntryModal .modal-buttons {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.manual-entry-input-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

.manual-entry-input {
    width: 100% !important;
    padding: 12px 16px !important;
    padding-right: 40px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    transition: border-color 0.15s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
}

.manual-entry-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.manual-entry-input.dropdown-open {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: none !important;
    border-color: #3b82f6 !important;
}

.manual-entry-loading {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #2563eb !important;
    pointer-events: none !important;
    z-index: 3 !important;
}

.manual-entry-suggestions {
    position: absolute !important;
    top: calc(100% - 1px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 160px !important;
    overflow-y: auto !important;
    background: white !important;
    border: 2px solid #3b82f6 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: none !important;
    margin: 0 !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
}

#manualEntryModal .modal-buttons {
    position: relative !important;
    z-index: 1 !important;
}

.manual-entry-suggestions.has-results {
    display: block !important;
}

.manual-esiid-item {
    padding: 8px 12px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    background: white !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.manual-esiid-item:hover {
    background-color: #f8fafc !important;
}

.manual-esiid-item:last-child {
    border-bottom: none !important;
    border-radius: 0 0 8px 8px !important;
}

.manual-esiid-item.selected {
    background-color: #eff6ff !important;
    border-left: 3px solid #3b82f6 !important;
}

.manual-esiid-item.active {
    border-left: 3px solid #10b981 !important;
}

.manual-esiid-item.inactive {
    border-left: 3px solid #f59e0b !important;
    opacity: 0.85 !important;
}

.manual-status-indicator {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    margin-top: 4px !important;
}

.manual-status-indicator.active {
    background-color: #10b981 !important;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3) !important;
}

.manual-status-indicator.inactive {
    background-color: #f59e0b !important;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3) !important;
}

.manual-address-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.manual-address-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.manual-esiid-text {
    font-size: 10px !important;
    color: #6b7280 !important;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    line-height: 1.1 !important;
    word-break: break-all !important;
    white-space: normal !important;
}

.manual-no-results,
.manual-error-message {
    padding: 16px !important;
    text-align: center !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    background: white !important;
}

.manual-error-message {
    color: #dc2626 !important;
    background: #fef2f2 !important;
    border-radius: 0 0 8px 8px !important;
}

@media (max-width: 768px) {
    #manualEntryModal {
        width: 95vw !important;
        margin: 10px !important;
    }
    
    .manual-entry-suggestions {
        max-height: 120px !important;
    }
    
    .manual-esiid-item {
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    
    .manual-address-text {
        font-size: 11px !important;
        -webkit-line-clamp: 1 !important;
    }
    
    .manual-esiid-text {
        font-size: 9px !important;
    }
}

@media (max-width: 480px) {
    #manualEntryModal {
        width: 98vw !important;
        margin: 5px !important;
    }
    
    .manual-entry-suggestions {
        max-height: 100px !important;
    }
    
    .manual-esiid-item {
        padding: 8px 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .manual-status-indicator {
        align-self: flex-start !important;
        margin-top: 2px !important;
    }
    
    .manual-address-info {
        width: 100% !important;
    }
}

* Ensure modal content has proper overflow */
#manualEntryModal .modal-content {
  overflow: visible !important;
  padding: 32px !important;
  position: relative !important;
}

.manual-entry-input-container {
  position: relative !important;
  margin-bottom: 0 !important; 
  z-index: 10 !important;
}

.manual-entry-input.dropdown-open {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.manual-entry-suggestions {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  background: white !important;
  border: 2px solid #3b82f6 !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
  margin: 0 !important;
  display: none !important;
}

.manual-entry-suggestions.has-results {
  display: block !important;
}

#manualEntryModal .modal-buttons {
  margin-top: 30px !important; 
  position: relative !important;
  z-index: 1 !important;
}

#manualEntryModal h3 {
  margin-bottom: 16px !important;
}

#manualEntryModal p {
  margin-bottom: 20px !important;
}
/* =============================================================================
   STEP 7 - COMPLETION PAGE
   ============================================================================= */
#step7 .confirmation-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

#step7 .background-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#step7 .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    opacity: 0.3;
}

#step7 .confirmation-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: cardSlideIn 0.8s ease-out;
}

#step7 .heading-main {
    margin: 20px 0 10px 0;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

#step7 .heading-sub {
    margin: 0 0 30px 0;
    color: var(--primary-blue);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

#step7 .details-container {
    text-align: left;
    margin-top: 30px;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

#step7 .order-info {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

#step7 .order-info p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

#step7 .order-info strong {
    font-weight: 600;
    color: var(--text-dark);
}

#step7 .details-container > p {
    margin: 15px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

#step7 .support-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

#step7 .support-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

#step7 .success-animation-container {
    margin-bottom: 30px;
    animation: fadeInScale 0.8s ease-out;
}

#step7 .success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    margin: 0 auto 20px;
    position: relative;
    animation: successPulse 0.6s ease-in-out 1s both;
}

#step7 .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: border-box;
    border: 4px solid var(--success-green);
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
}

#step7 .check-icon .icon-line {
    height: 3px;
    background-color: var(--success-green);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

#step7 .check-icon .line-tip {
    top: 38px;
    left: 20px;
    width: 20px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s ease-out 0.5s both;
}

#step7 .check-icon .line-long {
    top: 32px;
    right: 12px;
    width: 40px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s ease-out 0.75s both;
}

#step7 .completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 35px 0 25px 0;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

#step7 .completion-actions .btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

#step7 .completion-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#step7 .completion-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

#step7 .completion-actions .btn-secondary {
    background: white;
    color: var(--text-dark);
    border-color: #d1d5db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#step7 .completion-actions .btn-secondary:hover {
    background: #f9fafb;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#step7 .confirmation-number-banner {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 16px;
    padding: 25px 20px;
    margin: 20px 0 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    animation: confirmationPulse 0.8s ease-out 1.2s both;
    position: relative;
    overflow: hidden;
}

#step7 .confirmation-number-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmerEffect 2s ease-in-out 1.5s;
}

#step7 .confirmation-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#step7 .confirmation-number-display {
    color: white;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    letter-spacing: 2px;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#step7 .confirmation-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 400;
    margin-top: 8px;
    font-style: italic;
}

/* Enhanced Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 38px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 20px;
        left: 20px;
        top: 38px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 40px;
        right: 12px;
        top: 32px;
    }
}

@keyframes confirmationPulse {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (max-width: 768px) {
    #step7 .confirmation-card {
        padding: 30px 20px;
        margin: 20px;
    }

    #step7 .heading-main {
        font-size: 26px;
        line-height: 34px;
    }

    #step7 .heading-sub {
        font-size: 18px;
        line-height: 24px;
    }

    #step7 .completion-actions {
        flex-direction: column;
        align-items: center;
    }

    #step7 .completion-actions .btn {
        width: 100%;
        max-width: 250px;
    }

    #step7 .success-checkmark {
        width: 60px;
        height: 60px;
    }

    #step7 .check-icon {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }

    #step7 .confirmation-number-display {
        font-size: 22px;
        letter-spacing: 1px;
    }
}

/* =============================================================================
   FOOTER SECTION
   ============================================================================= */
#footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 64px;
    padding-right: 64px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
}

.footer-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 259px;
    height: 59px;
}

.footer-logo-icon,
.footer-logo-overlay {
    position: absolute;
    width: 58px;
    height: 59px;
    left: 0;
    top: 0;
}

.footer-logo-text {
    margin-left: 70px;
    font-family: 'Outfit', sans-serif;
    font-size: 34.5px;
    line-height: 43.5px;
    color: #f9f9f9;
}

.footer-logo-text .watt {
    font-weight: 700;
}

.footer-logo-text .karma {
    font-weight: 300;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22.5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    font-size: 10px;
    line-height: 22px;
}

.footer-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 9.8px;
    line-height: 15px;
}

.footer-credentials span {
    color: #f3f4f6;
}

.footer-credentials span:first-child {
    color: var(--white);
}

.go-to-top-button {
    position: absolute;
    bottom: 80px;
    right: 88px;
    width: 50px;
    height: 50px;
    background-color: var(--background-light-gray);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1200px) {
    .go-to-top-button {
        right: 40px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-credentials {
        flex-direction: column;
    }

    .go-to-top-button {
        bottom: 20px;
        right: 20px;
    }
}

/* =============================================================================
   STEP CONTAINER MANAGEMENT
   ============================================================================= */
.step-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.step-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 4 specific layout overrides */
#step4 #enrollment {
    background-color: transparent;
}

#step4 .main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 53px 20px 100px;
    min-height: 921px;
}

#step4 .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#step4 .form-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#step4 .enrollment-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

#step4 .form-row {
    width: 100%;
}

#step4 .name-fields {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    #step4 .main-content {
        padding: 40px 15px;
    }

    #step4 .enrollment-form-card {
        padding: 30px 20px;
    }

    #step4 .name-fields {
        flex-direction: column;
    }

    #step4 .button-group {
        flex-direction: column;
    }
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */
.hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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

.card-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 480px;
    align-self: center;
}

/* =============================================================================
   RESPONSIVE DESIGN MOBILE OVERRIDES
   ============================================================================= */
@media (max-width: 768px) {
    .step-container.active {
        animation: mobileSlideIn 0.4s ease-out;
    }

    @keyframes mobileSlideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .upload-button,
    .manual-entry-button {
        padding: 18px 20px;
        min-height: 70px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .upload-button img {
        width: 20px;
        height: 20px;
    }

    .upload-button {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .upload-button,
    .manual-entry-button {
        padding: 16px 18px;
        min-height: 65px;
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* =============================================================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.form-checkbox:focus,
.form-radio:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.form-checkbox:checked,
.form-radio:checked {
    transform: scale(1.1);
}

/* =============================================================================
   ANIMATION HELPERS
   ============================================================================= */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =============================================================================
 * FORCING STYLES
 * ============================================================================= */

.modal-buttons {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important; 
    margin-top: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
}

.modal-buttons .btn {
    flex: 0 0 auto !important;
    min-width: 120px !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    border: none !important;
    text-align: center !important;
}

.modal-buttons .btn-primary {
    background: #3b82f6 !important;
    color: white !important;
}

.modal-buttons .btn-primary:hover:not(:disabled) {
    background: #2563eb !important;
    transform: translateY(-1px) !important;
}

.modal-buttons .btn-primary:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

.modal-buttons .btn-secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.modal-buttons .btn-secondary:hover {
    background: #e5e7eb !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
    .modal-buttons {
        flex-direction: row !important;
        gap: 10px;
        justify-content: center;
    }
    
    .modal-buttons .btn {
        flex: 1;
        max-width: 140px;
        min-width: 100px;  
        padding: 10px 14px;
        font-size: 14px;
    }
}


#resume-notification {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    padding: 20px 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4) !important;
    z-index: 10001 !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(10px) !important;
    animation: slideDown 0.3s ease !important;
    max-width: calc(100vw - 40px) !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif !important;
}

#resume-notification .notification-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
}

#resume-notification .button-container {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

#resume-notification svg {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    opacity: 0.9 !important;
}

#resume-notification span {
    line-height: 1.4 !important;
    color: white !important;
    font-weight: 500 !important;
}

#resume-notification button {
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    white-space: nowrap !important;
    min-width: 100px !important;
    font-family: inherit !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#resume-notification #resume-yes {
    background: white !important;
    color: #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

#resume-notification #resume-yes:hover {
    background: #f8fafc !important;
    color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
}

#resume-notification #resume-yes:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2) !important;
}

#resume-notification #resume-no {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(5px) !important;
}

#resume-notification #resume-no:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#resume-notification #resume-no:active {
    transform: translateY(0) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 768px) {
    #resume-notification {
        top: 15px !important;
        left: 15px !important;
        right: 15px !important;
        transform: none !important;
        max-width: none !important;
        width: calc(100vw - 30px) !important;
        padding: 16px 18px !important;
        font-size: 13px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    
    #resume-notification .notification-content {
        margin-bottom: 0 !important;
        justify-content: flex-start !important;
    }
    
    #resume-notification .button-container {
        width: 100% !important;
        gap: 10px !important;
    }
    
    #resume-notification button {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
        min-height: 44px !important;
    }
    
    #resume-notification svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 480px) {
    #resume-notification {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        padding: 14px 16px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }
    
    #resume-notification button {
        padding: 10px 14px !important;
        font-size: 12px !important;
        min-height: 40px !important;
        border-radius: 6px !important;
    }
    
    #resume-notification svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@keyframes slideDown {
    from { 
        transform: translate(-50%, -100%); 
        opacity: 0; 
        scale: 0.95;
    }
    to { 
        transform: translate(-50%, 0); 
        opacity: 1; 
        scale: 1;
    }
}

@media (max-width: 768px) {
    @keyframes slideDown {
        from { 
            transform: translateY(-100%); 
            opacity: 0; 
            scale: 0.95;
        }
        to { 
            transform: translateY(0); 
            opacity: 1; 
            scale: 1;
        }
    }
}

#resume-notification {
    position: fixed !important;
    z-index: 999999 !important;
}

#resume-notification * {
    margin: 0 !important;
}

#resume-notification .notification-content,
#resume-notification .button-container {
    margin: 0 !important;
}

.modal-backdrop ~ * .hamburger-menu,
.modal-backdrop ~ * #header {
    filter: blur(3px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

#step1 .btn.btn-secondary {
  display: none !important;
}

@media (max-width: 768px) {
  #manualEntryModal {
    width: 95vw !important;
    margin: 10px !important;
  }
  
  #manualEntryModal .modal-content {
    padding: 20px !important;
  }
  
  .manual-entry-suggestions {
    height: 180px;
    max-height: 30vh;
  }
  
  .manual-esiid-item {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .manual-status-indicator {
    align-self: flex-start;
    margin-top: 2px;
  }
  
  .manual-address-info {
    width: 100%;
  }
  
  .manual-address-text {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }
  
  .manual-esiid-text {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  #manualEntryModal {
    width: 98vw !important;
    margin: 5px !important;
  }
  
  #manualEntryModal .modal-content {
    padding: 16px !important;
  }
  
  .manual-esiid-item {
    padding: 10px;
  }
  
  .manual-address-text {
    font-size: 12px;
  }
  
  .manual-esiid-text {
    font-size: 10px;
  }
}

.manual-entry-suggestions.has-no-results {
    display: block !important;
}

.footer-logo-icon {
    height: 60px; 
    width: auto;
    max-width: 350px; 
    filter: brightness(1);
}

.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px; 
}

@media (max-width: 768px) {
    #manualEntryModal .modal-buttons {
        flex-direction: row !important;
    }
}

@media (max-width: 768px) {
   #step1Continue,
   #step2Continue, 
   #step5Continue,
   #step6Continue {
       flex: none !important;
       width: auto !important;
       min-width: auto !important;
       max-width: none !important;
       padding: 18px 32px !important;
       font-size: 18px !important;
   }
}