:root {
    --warm-beige: #D4A574;
    --warm-beige-dark: #9B7A4F;
    --light-beige: #E5D4B1;
    --warm-taupe: #8B7355;
    --rich-brown: #5C4033;
    --sand: #F5E6D3;
    --cream: #FBF7F0;
    --camel: #C19A6B;
    --ivory: #FFFFF0;
    --espresso: #3C2415;
    --pure-white: #FFFFFF;
    --success-green: #22C55E;
    --gray-50: #FAFAFA;
    --gray-100: #F7F7F7;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--espresso);
    background: var(--sand);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Navigation */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.2rem 4rem;
    background: rgba(251, 247, 240, 0.95); backdrop-filter: blur(20px) saturate(110%); -webkit-backdrop-filter: blur(20px) saturate(110%);
    box-shadow: 0 1px 0 rgba(193,154,107,0.15), 0 8px 32px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.8);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: 0 auto; }
.logo { display: inline-block; line-height: 1; text-decoration: none; }
.logo svg { width: 160px; height: 30px; display: block; }
.nav-phone {
    color: var(--pure-white); background: var(--warm-beige); text-decoration: none; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em;
    padding: 0.8rem 2.2rem; border-radius: 50px; transition: all 0.3s ease; box-shadow: 0 6px 24px rgba(212,165,116,0.2);
}
.nav-phone:hover { background: var(--warm-taupe); transform: translateY(-2px); }

@media (max-width: 768px) {
    nav { padding: 1rem 2rem; }
}

.hero-form-wrapper {
    z-index: 50;
    width: 420px;
    min-width: 400px;
    max-width: 100%;
    flex-shrink: 0;
    padding: 7rem 0 5rem;
}

.hero-form-overlay {
    background: rgba(251, 247, 240, 0.75);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1),
                inset 0 1px 1px rgba(255,255,255,0.8);
}

.order-form-container { 
    padding: 1.5rem 2rem 1.75rem; 
}

/* Form Header */
.form-header { 
    text-align: center; 
    margin-bottom: 1rem; 
}

.form-header h3 {
    font-size: 1.375rem;
    color: var(--espresso);
    margin-bottom: 0.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Trust Row */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trust-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--espresso);
    border: 1px solid rgba(212, 165, 116, 0.2);
    letter-spacing: 0.05em;
}

/* Compact Selection Indicator */
.selection-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(212, 165, 116, 0.08);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.selection-compact-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.selection-compact-left svg {
    width: 14px;
    height: 14px;
    color: var(--success-green);
    flex-shrink: 0;
}

.selection-compact-entity {
    font-weight: 700;
    color: var(--espresso);
}

.selection-compact-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--warm-taupe);
}

/* Entity Selection */
.entity-selection { 
    margin-bottom: 0.75rem; 
}

.entity-options { 
    display: grid; 
    gap: 0.5rem; 
}

.entity-option {
    background: rgba(255,255,255,0.7);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem 1.125rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.entity-option:hover {
    border-color: var(--warm-beige);
    background: rgba(255,255,255,0.85);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.08);
}

.entity-option.selected {
    border-color: var(--warm-taupe);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.1);
}

.entity-option:focus { 
    outline: 3px solid var(--warm-beige); 
    outline-offset: 2px; 
}

.entity-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entity-info { 
    flex: 1; 
    min-width: 0; 
}

.entity-info h5 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--espresso);
    margin-bottom: 0.125rem;
}

.entity-info p {
    font-size: 0.6875rem;
    color: var(--gray-600);
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.entity-price { 
    text-align: right; 
}

.entity-price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--warm-taupe);
    display: block;
}

.entity-price span {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--gray-500);
    display: block;
    text-transform: lowercase;
}

/* Disclaimer Text */
.disclaimer-text {
    text-align: center;
    font-size: 0.65rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Reassurance Text */
.reassurance-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--warm-taupe);
    margin: 1rem 0 0.5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    padding: 0 0.5rem;
}

.reassurance-text strong { 
    font-weight: 700; 
    color: var(--espresso); 
}

/* Order Button */
.order-now-button {
    width: 100%;
    padding: 0.875rem;
    background: var(--espresso);
    color: var(--pure-white);
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 0.75rem;
    border-radius: 10px;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.order-now-button:hover:not(:disabled) {
    background: var(--warm-taupe);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

.order-now-button:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

/* Multi-step Form */
.form-step { 
    display: none; 
    animation: fadeIn 0.3s ease-out; 
}

.form-step.active { 
    display: block; 
}

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

/* Progress Indicator */
.form-progress { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 1rem; 
    padding: 0 1rem; 
}

.progress-step { 
    flex: 1; 
    text-align: center; 
    position: relative; 
}

.progress-step::before { 
    content: ''; 
    position: absolute; 
    top: 15px; 
    left: 50%; 
    width: 100%; 
    height: 2px; 
    background: var(--gray-200); 
    z-index: -1; 
}

.progress-step:last-child::before { 
    display: none; 
}

.progress-step.completed::before { 
    background: var(--warm-beige); 
}

.progress-dot { 
    width: 30px; 
    height: 30px; 
    background: var(--gray-200); 
    border-radius: 50%; 
    margin: 0 auto 0.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--gray-500); 
    transition: all 0.3s ease; 
}

.progress-step.active .progress-dot, 
.progress-step.completed .progress-dot { 
    background: var(--warm-beige); 
    color: var(--pure-white); 
}

.progress-label { 
    font-size: 0.7rem; 
    color: var(--gray-500); 
    font-weight: 600; 
}

.progress-step.active .progress-label, 
.progress-step.completed .progress-label { 
    color: var(--espresso); 
}

/* Form Fields */
.form-group { 
    margin-bottom: 1.25rem; 
}

.form-group.optional {
    margin-bottom: 1rem;
}

.form-label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: var(--gray-700); 
    margin-bottom: 0.5rem; 
    letter-spacing: 0.05em; 
}

.form-label .optional-tag {
    font-weight: 500;
    color: var(--gray-500);
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.form-input { 
    width: 100%; 
    padding: 0.75rem 1rem; 
    border: 2px solid var(--gray-200); 
    border-radius: 8px; 
    font-size: 0.9rem; 
    font-family: inherit; 
    transition: all 0.3s ease; 
    background: rgba(255,255,255,0.8); 
}

.form-input:focus { 
    outline: none; 
    border-color: var(--warm-beige); 
    background: var(--pure-white); 
}

.form-input.error { 
    border-color: #EF4444; 
}

.error-message { 
    font-size: 0.75rem; 
    color: #EF4444; 
    margin-top: 0.25rem; 
    display: none; 
}

.form-input.error + .error-message { 
    display: block; 
}

/* Different State Link */
.different-state-toggle {
    text-align: center;
    margin-bottom: 0.75rem;
}

.different-state-link {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.different-state-link:hover {
    color: var(--warm-taupe);
}

.different-state-link svg {
    width: 12px;
    height: 12px;
}

/* State Panel */
.state-panel {
    display: none;
    background: var(--cream);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    animation: slideDown 0.2s ease-out;
}

.state-panel.open {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.state-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.state-panel-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--espresso);
}

.state-panel-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.state-panel-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.state-panel-close svg {
    width: 16px;
    height: 16px;
}

.state-dropdown-wrapper {
    position: relative;
}

.state-dropdown {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--espresso);
    background: var(--pure-white);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.state-dropdown:focus {
    outline: none;
    border-color: var(--warm-beige);
}

.state-dropdown-arrow {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-500);
}

.state-dropdown-arrow svg {
    width: 16px;
    height: 16px;
}

/* Order Summary */
.order-summary {
    background: var(--cream);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.order-summary-row + .order-summary-row {
    margin-top: 0.5rem;
}

.order-summary-row.total {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--gray-300);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--espresso);
}

.order-summary-row .amount {
    font-weight: 600;
}

.order-summary-row.total .amount {
    font-size: 1rem;
    color: var(--warm-taupe);
}

.order-summary-row.state-addon {
    color: var(--warm-beige-dark);
}

.order-summary-row.discount {
    color: #059669;
}

.order-summary-row.discount .amount {
    color: #059669;
}

/* Promo Code */
.promo-code-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-300);
}

.promo-code-toggle {
    font-size: 0.75rem;
    color: var(--warm-taupe);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.promo-code-toggle:hover {
    color: var(--espresso);
}

.promo-code-toggle svg {
    width: 14px;
    height: 14px;
}

.promo-code-form {
    display: none;
    margin-top: 0.5rem;
}

.promo-code-form.show {
    display: flex;
    gap: 0.5rem;
}

.promo-code-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.promo-code-form input:focus {
    outline: none;
    border-color: var(--warm-taupe);
}

.promo-code-form button {
    padding: 0.5rem 0.875rem;
    background: var(--espresso);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.promo-code-form button:hover {
    background: var(--warm-taupe);
}

.promo-code-form button:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.promo-code-message {
    font-size: 0.7rem;
    margin-top: 0.35rem;
    display: none;
}

.promo-code-message.success {
    color: #059669;
    display: block;
}

.promo-code-message.error {
    color: #dc2626;
    display: block;
}

.promo-code-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.promo-code-applied .code-text {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
}

.promo-code-applied .remove-code {
    font-size: 0.7rem;
    color: #dc2626;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.promo-code-applied .remove-code:hover {
    text-decoration: underline;
}

/* Checkboxes */
.form-checkbox { 
    display: flex; 
    align-items: flex-start; 
    gap: 0.75rem; 
    margin-bottom: 1rem; 
}

.form-checkbox input[type="checkbox"] { 
    margin-top: 0.25rem; 
    width: 16px; 
    height: 16px; 
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label { 
    font-size: 0.75rem; 
    color: var(--gray-600); 
    line-height: 1.5; 
    cursor: pointer; 
}

.form-checkbox a { 
    color: var(--warm-taupe); 
    text-decoration: underline; 
}

/* Navigation Buttons */
.form-navigation { 
    display: flex; 
    gap: 1rem; 
    margin-top: 1.25rem; 
}

.btn-back { 
    padding: 0.75rem 1.5rem; 
    background: var(--gray-200); 
    color: var(--gray-700); 
    border: none; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}

.btn-back:hover { 
    background: var(--gray-300); 
}

.btn-next { 
    flex: 1; 
    padding: 0.75rem; 
    background: var(--warm-beige); 
    color: var(--pure-white); 
    border: none; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

.btn-next:hover { 
    background: var(--warm-beige-dark); 
    transform: translateY(-1px); 
}

/* Payment Section */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.secure-badge svg {
    width: 14px;
    height: 14px;
    color: var(--success-green);
}

.secure-badge span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: 0.02em;
}

.payment-iframe-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.payment-iframe-container {
    background: var(--pure-white);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 350px;
}

.payment-iframe-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
}

.payment-iframe-container iframe::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.payment-iframe-container.loading::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    z-index: 1;
}

.payment-iframe-container.loading::after {
    content: 'Loading secure payment...';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    color: var(--gray-600);
    z-index: 2;
}

/* Payment Gate Overlay */
.payment-gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251, 247, 240, 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.payment-gate-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.payment-gate-content {
    text-align: center;
    padding: 2rem;
}

.payment-gate-content svg {
    width: 40px;
    height: 40px;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.payment-gate-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body { padding: 1rem; }

    .hero-form-wrapper {
        width: 100%;
        min-width: auto;
    }

    .order-form-container {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .entity-info h5 {
        font-size: 1rem;
    }
    
    .entity-option {
        padding: 0.625rem 0.875rem;
    }
    
    .entity-price-amount {
        font-size: 1.125rem;
    }
    
    .form-input,
    .state-dropdown { 
        font-size: 16px;
        padding: 0.875rem 1rem; 
    }

    .state-dropdown {
        padding-right: 2.5rem;
    }
    
    .form-label { 
        font-size: 0.875rem; 
    }
    
    .btn-next, .btn-back { 
        padding: 1rem; 
        font-size: 0.9rem; 
    }

    .trust-row { gap: 0.5rem; }

    .trust-pill {
        padding: 0.2rem 0.5rem;
        font-size: 0.6rem;
    }

    .selection-compact {
        padding: 0.4rem 0.625rem;
    }

    .selection-compact-left { font-size: 0.7rem; }
    .selection-compact-price { font-size: 0.75rem; }

    .payment-iframe-container { min-height: 400px; }
    .payment-iframe-container iframe { height: 400px; }

    .payment-gate-content svg {
        width: 32px;
        height: 32px;
    }

    .payment-gate-content p {
        font-size: 0.8rem;
    }

    .form-progress {
        padding: 0 0.5rem;
        margin-bottom: 0.75rem;
    }

    .progress-dot {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .progress-label { font-size: 0.65rem; }
    .form-checkbox label { font-size: 0.7rem; }

    .state-panel { padding: 0.875rem; }
}

@media (max-width: 360px) {
    .order-form-container {
        padding: 1rem 1.25rem 1.25rem;
    }

    .form-header h3 { font-size: 1.25rem; }
    .form-subtitle { font-size: 0.7rem; }
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--warm-beige);
    outline-offset: 2px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-form-wrapper {
        width: 100%;
        max-width: 450px;
    }
}