:root {
    /* Color Palette */
    --primary: #0f172a;
    /* Sleek Dark Blue/Black */
    --accent: #f97316;
    /* Vibrant Orange for high conversion */
    --accent-hover: #ea580c;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --focus-ring: rgba(249, 115, 22, 0.3);

    /* Spacing & Sizing */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --input-height: 56px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

/* Header */
.header {
    background: var(--surface);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
}

.brand-logo {
    height: 120px;
    /* Much larger logo visibility */
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    background-color: transparent;
    border: 2px solid var(--border);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 99px;
    transition: all 0.2s ease;
}

.header-phone:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.header-phone svg {
    color: var(--accent);
}

.header-phone:hover svg {
    color: white;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 99px;
}

/* Hero Section */
.hero {
    padding: 40px 20px 24px;
    text-align: center;
}

.tagline {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 90%;
    margin: 0 auto;
}

/* Form Section */
.form-section {
    padding: 0 20px;
}

.form-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: var(--primary);
}

input,
select {
    width: 100%;
    height: var(--input-height);
    padding: 0 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--surface);
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

input::placeholder {
    color: #94a3b8;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Custom Select styling */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    padding-right: 48px;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

/* CTA Button */
.form-actions {
    margin-top: 28px;
}

.cta-button {
    width: 100%;
    height: 60px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.cta-button.loading {
    background: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* Secure Footer */
.secure-footer {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* Trust Section */
.trust-section {
    padding: 32px 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.trust-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.trust-item h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Success State */
#success-state {
    padding: 40px 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    width: 100%;
}

.success-icon-wrap {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

/* SVG Checkmark Animation */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--success);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px var(--success);
    }
}

.success-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.next-steps {
    text-align: left;
    background: var(--background);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.next-steps strong {
    display: block;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.next-steps ul {
    list-style: none;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.next-steps li svg {
    color: var(--success);
}

.secondary-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: var(--background);
    border-color: var(--text-muted);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .brand-logo {
        height: 100px;
        /* Kept larger on mobile as well */
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 16px;
    }

    .trust-icon-box {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}