:root {
    /* Color Palette */
    --bg-color: #1E1E1E;
    --text-color: #F7F7F7;
    --accent-color: #00EFB5;
    --secondary-bg: #2A2A2A;
    --border-color: rgba(255, 255, 255, 0.1);
    --muted-text: #ABABAB;
    --error-red: #FF6B6B;

    /* Typography */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Mukta Mahee', 'Inter', sans-serif;

    --radius-sm: 4px;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Global Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.custom-cursor.cursor-hover {
    transform: scale(3);
    background: rgba(0, 239, 181, 0.5);
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: z-index 0.1s linear 1s;
}

/* Form Header Rows */
.form-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.form-top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-side {
    display: flex;
    align-items: center;
}

.form-logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 239, 181, 0.2));
}

.switch-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.switch-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-text);
    text-align: center;
}

.intro-overlay.send-to-back {
    z-index: 0;
    pointer-events: none;
}

.intro-container {
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.intro-text-svg {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 50px;
    fill: #1E1E1E;
    stroke: #1E1E1E;
    stroke-width: 0px;
    stroke-linejoin: round;
}

.intro-progress-container {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.intro-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading .intro-progress-bar {
    width: 100%;
}

.expanding .intro-text-svg {
    animation: expandStroke 1.5s forwards cubic-bezier(0.7, 0, 0.3, 1);
}

@keyframes expandStroke {
    0% {
        stroke-width: 0px;
    }

    100% {
        stroke-width: 3000px;
    }
}

.expanding .intro-progress-container {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* NGO / Business Switch */
.type-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.switch-btn {
    background: none;
    border: none;
    color: var(--muted-text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.switch-btn.active {
    color: var(--accent-color);
}

.switch-track {
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
}

.type-switch-container:hover {
    border-color: rgba(0, 239, 181, 0.35);
    box-shadow: 0 0 14px rgba(0, 239, 181, 0.18);
}

.switch-thumb {
    width: 22px;
    height: 22px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 239, 181, 0.3);
}

.type-ngo .switch-thumb {
    transform: translateX(30px);
}

/* Glowing Progress Bar */
.glowing-progress-container {
    width: 100%;
    height: 44px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 22px;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill-glowing {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00EFB5, #00ffd5);
    box-shadow: 0 0 25px rgba(0, 239, 181, 0.8), 0 0 50px rgba(0, 239, 181, 0.4);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    top: 0;
    left: 0;
}

.progress-message-internal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
}

.progress-message-filled {
    color: #1E1E1E;
    /* Black text on Cyan */
    text-shadow: none;
    z-index: 20;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Content Visibility */
.hero-show .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Form Container Reverted/Refined */
.form-container-outer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 100;
}

.form-container {
    width: 100%;
    max-width: 700px;
    background: var(--secondary-bg);
    padding: 3.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    position: relative;
}

/* Form Input Refinements */
.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(0, 239, 181, 0.02);
    box-shadow: 0 0 15px rgba(0, 239, 181, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Contact Step Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.full {
    grid-column: span 2;
}

.consent-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted-text);
    cursor: pointer;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.consent-label:hover {
    color: #fff;
}

.consent-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-label input[type="checkbox"]:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 239, 181, 0.3);
}

.consent-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1E1E1E;
    font-size: 14px;
    font-weight: 800;
}

/* Validation Style */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ff4b4b !important;
    background: rgba(255, 75, 75, 0.02) !important;
}

.warning-text {
    color: #ff4b4b;
    font-size: 0.75rem;
    margin-top: 6px;
    display: block;
    font-weight: 600;
    animation: warningSlideIn 0.3s ease forwards;
}

@keyframes warningSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.contact-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Step Transitions */
.step-fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.step-fade-in {
    animation: stepSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Selection Label Styles */
.selection-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

/* Success Screen Redesign */
.success-screen-card {
    text-align: center;
    padding: 2rem 0;
}

.success-icon-container {
    width: 100px;
    height: 100px;
    background: rgba(0, 239, 181, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2.5rem;
    position: relative;
    border: 1px solid rgba(0, 239, 181, 0.2);
}

.success-icon-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    opacity: 0.2;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

.success-icon {
    width: 54px;
    height: 54px;
    stroke: var(--accent-color);
    filter: drop-shadow(0 0 15px var(--accent-color)) drop-shadow(0 0 30px var(--accent-color));
    stroke-width: 3.5px;
}

.success-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.success-description {
    color: var(--muted-text);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto 2.5rem;
}

.meeting-cta {
    background: rgba(0, 239, 181, 0.05);
    border: 1px solid rgba(0, 239, 181, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    opacity: 1;
}

.meeting-cta-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.meeting-cta-actions .btn {
    flex: 1;
    min-width: 0;
}

.success-secondary-note {
    color: var(--muted-text);
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.success-secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.success-primary-btn {
    border: 1px solid var(--accent-color);
}

.cta-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.glow-pulse {
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 239, 181, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 239, 181, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 239, 181, 0.2);
    }
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/* Buttons Refined */
.btn {
    display: inline-block;
    border-radius: 50px;
    /* Pill shaped */
    padding: 1rem 2.5rem;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

a.btn-primary,
.btn-primary {
    background: var(--accent-color);
    color: #1E1E1E !important;
    /* Black text on teal */
    box-shadow: 0 4px 15px rgba(0, 239, 181, 0.2);
    border: 1px solid transparent;
}

a.btn-primary *,
.btn-primary * {
    color: #1E1E1E !important;
}

a.btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 239, 181, 0.4);
    color: #1E1E1E !important;
    text-decoration: none;
}

a.btn-secondary,
.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

a.btn-secondary:hover,
.btn-secondary:hover {
    border-color: var(--accent-color);
    color: #fff !important;
    transform: translateY(-2px);
}

.mt-8 {
    margin-top: 2rem;
}

@media (max-width: 720px) {
    .meeting-cta-actions {
        flex-direction: column;
    }

    .custom-cursor {
        display: none !important;
    }

    body,
    body * {
        cursor: auto !important;
    }

    .contact-nav .btn {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.04em;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.78rem;
    }

    .step-title {
        font-size: clamp(1.35rem, 6vw, 1.85rem);
        line-height: 1.2;
    }

    .form-label,
    .selection-label,
    .progress-message-internal {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .glowing-progress-container {
        height: 36px;
        margin-bottom: 2.2rem;
    }

    .form-container {
        padding: 2rem 1.1rem;
    }

    .form-head-row {
        margin-bottom: 0.75rem;
    }

    .form-top-bar {
        padding-bottom: 1.3rem;
        margin-bottom: 1.4rem;
    }

    .form-logo {
        height: 28px;
    }

    .form-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .switch-label {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .type-switch-container {
        gap: 0.55rem;
        padding: 0.3rem 0.45rem;
    }

    .switch-btn {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .option-card-group {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.25rem;
    }

    .option-card-group .option-card {
        min-width: 75%;
        scroll-snap-align: start;
    }
}

/* Session Resume Banner */
#resume-banner {
    background: rgba(0, 239, 181, 0.05);
    border: 1px solid rgba(0, 239, 181, 0.15);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    animation: warningSlideIn 0.4s ease forwards;
}

.resume-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.resume-btn-continue {
    background: var(--accent-color);
    color: #1E1E1E;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-btn-restart {
    background: transparent;
    color: var(--muted-text);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-btn-restart:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Form Close Button */
.form-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted-text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.form-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Option Cards Reverted/Refined */
.option-card-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-card:hover {
    border-color: var(--accent-color);
    background: rgba(0, 239, 181, 0.03);
    transform: translateX(5px);
}

.option-card.selected {
    border-color: var(--accent-color);
    background: rgba(0, 239, 181, 0.08);
    box-shadow: 0 0 20px rgba(0, 239, 181, 0.1);
}

/* Cookie Consent */
.cookie-consent-popup {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.cookie-consent-card {
    width: min(640px, 100%);
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.cookie-consent-card h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: 1rem;
}

.cookie-consent-card p {
    margin: 0 0 0.9rem;
    color: var(--muted-text);
    font-size: 0.9rem;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
