/* ============================================
   PREMIUM COGNITIVE UI – Akashly Growth Funnel
   Modern | Clean | High‑Readability | Mature
   ============================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 10% 30%, #f0f4ff, #e6edfc);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- MAIN CARD (glass container) ----- */
.container {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 48px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container:hover {
    box-shadow: 0 30px 55px -12px rgba(0, 0, 0, 0.25);
}

/* ----- LOGO (crisp, elegant) ----- */
.logo-wrapper {
    text-align: center;
    padding: 36px 36px 0 36px;
    background: transparent;
}

.logo {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.02));
    transition: filter 0.2s;
}

/* ----- PROGRESS BAR (sleek, minimal) ----- */
.progress-wrapper {
    padding: 28px 36px 0 36px;
    background: transparent;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9eef3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a6cf7 0%, #7c3aed 100%);
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-radius: 12px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.progress-text {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    letter-spacing: -0.01em;
}

.progress-time {
    font-size: 12px;
    color: #64748b;
    background: #f1f4f9;
    padding: 4px 10px;
    border-radius: 40px;
    font-weight: 450;
}

/* ----- FORM LAYOUT ----- */
form {
    padding: 28px 36px 36px 36px;
}

/* ----- STEP ANIMATION ----- */
.step {
    display: none;
    animation: cognitiveFade 0.45s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

.step.active {
    display: block;
}

@keyframes cognitiveFade {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- TYPOGRAPHY (premium, spacious) ----- */
h2 {
    font-size: 32px;
    font-weight: 650;
    color: #0f172a;
    margin-bottom: 28px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.helper {
    font-size: 14px;
    font-weight: 400;
    color: #5b6e8c;
    display: block;
    margin-top: 8px;
    letter-spacing: -0.01em;
}

/* ----- INPUTS (mature, clean, high‑affordance) ----- */
.input-group {
    margin-bottom: 32px;
}

input, select {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

input:focus, select:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.12);
    background: #ffffff;
}

input.error, select.error {
    border-color: #f97316;
    background: #fffaf5;
}

.error-message {
    color: #f97316;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    display: none;
    padding-left: 6px;
}

.error-message.show {
    display: block;
    animation: fadeShake 0.25s ease;
}

@keyframes fadeShake {
    0% { opacity: 0; transform: translateX(-4px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ----- CHECKBOX GROUP (realistic, smooth) ----- */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 14px 18px;
    background: #fafcff;
    border-radius: 28px;
    border: 1px solid #eef2f8;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #ffffff;
    border-color: #cbdff5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #4a6cf7;
    transform: scale(1);
}

.checkbox-label span {
    font-size: 16px;
    color: #1e293b;
    font-weight: 470;
    letter-spacing: -0.2px;
}

.checkbox-label.consent {
    background: #fefce8;
    border-color: #fde047;
}

/* ----- BUTTONS (confident, premium) ----- */
button {
    width: 100%;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(105deg, #4a6cf7 0%, #6d3ae2 100%);
    color: #ffffff;
    margin-top: 8px;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(74, 108, 247, 0.4);
    background: linear-gradient(105deg, #3a5ce5 0%, #5e2acf 100%);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
    margin-left: -11px;
    margin-top: -11px;
    border: 2.5px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----- SELECT ARROW (native but refined) ----- */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6e8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 20px center;
    background-repeat: no-repeat;
    background-size: 18px;
}

/* ----- FOOTER (subtle, informative) ----- */
.footer-note {
    padding: 0 36px 36px 36px;
    text-align: center;
    border-top: none;
    margin-top: 0;
}

.footer-note p {
    font-size: 12.5px;
    color: #6e85a8;
    background: #f8fafd;
    display: inline-block;
    padding: 8px 18px;
    border-radius: 60px;
    letter-spacing: -0.2px;
}

/* ----- RESPONSIVE (mobile first, but desktop refined) ----- */
@media (max-width: 680px) {
    body {
        padding: 16px;
    }
    .container {
        border-radius: 36px;
    }
    .logo-wrapper {
        padding: 28px 24px 0 24px;
    }
    .progress-wrapper {
        padding: 22px 24px 0 24px;
    }
    form {
        padding: 24px 24px 28px 24px;
    }
    .footer-note {
        padding: 0 24px 28px 24px;
    }
    h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }
    input, select, button, .checkbox-label {
        padding: 16px 18px;
        font-size: 15px;
    }
    .checkbox-label {
        padding: 12px 16px;
    }
}

/* ----- PLACEHOLDER (soft, clean) ----- */
::placeholder {
    color: #9aaec5;
    font-weight: 400;
}

/* ----- UTILITY: no outline on focus for mouse, but keyboard accessible ----- */
input:focus-visible, select:focus-visible, button:focus-visible {
    outline: 2px solid #4a6cf7;
    outline-offset: 2px;
}