/* ==========================================================
   The Founder's Dream - Main Stylesheet
   ========================================================== */

:root {
    --purple-deep: #6D28D9;
    --purple: #8B3FF5;
    --purple-light: #A970FF;
    --lavender-bg: #F5F1FC;
    --lavender-card: #FFFFFF;
    --lavender-soft: #EFE6FD;
    --border-soft: #E3D6FA;
    --text-dark: #221B34;
    --text-muted: #6B6580;
    --success-bg: #ECFDF3;
    --success-border: #A7F3D0;
    --success-text: #047857;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-card: 0 10px 40px rgba(109, 40, 217, .08);
}

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

body {
    background: var(--lavender-bg);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */
header {
    background: var(--lavender-card);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}

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

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
    padding: 44px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--lavender-soft) 0%, var(--lavender-bg) 100%);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-soft);
    color: var(--purple-deep);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(139, 63, 245, .08);
}

.hero h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    max-width: 680px;
    margin: 0 auto 12px;
    color: var(--text-dark);
}

.hero h1 .accent {
    color: var(--purple);
}

.hero p.sub {
    color: var(--text-muted);
    font-size: 15.5px;
    max-width: 520px;
    margin: 0 auto 22px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-stats span {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stats strong {
    color: var(--purple-deep);
}

/* ==========================================================
   APPLY SECTION & LAYOUT
   ========================================================== */
.apply-section {
    padding: 34px 0 80px;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.sidebar-stack {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-panel {
    background: var(--lavender-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 38px 36px;
    box-shadow: var(--shadow-card);
}

.form-panel h3 {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-panel .form-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.spots-left {
    display: inline-block;
    background: var(--lavender-soft);
    color: var(--purple-deep);
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 26px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.field label {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.field label .req {
    color: var(--purple);
}

.field input,
.field select,
.field textarea {
    background: var(--lavender-bg);
    border: 1.5px solid var(--border-soft);
    color: var(--text-dark);
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: .2s border-color, .2s box-shadow;
    width: 100%;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236D28D9' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 63, 245, .12);
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9c94b3;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-option {
    flex: 1 1 auto;
    min-width: 130px;
}

.radio-option input {
    display: none;
}

.radio-option label {
    display: block;
    text-align: center;
    background: var(--lavender-bg);
    border: 1.5px solid var(--border-soft);
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    color: var(--text-muted);
}

.radio-option input:checked+label {
    border-color: var(--purple);
    background: var(--lavender-soft);
    color: var(--purple-deep);
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 26px;
}

.checkbox-field input {
    margin-top: 4px;
    accent-color: var(--purple);
}

.checkbox-field label {
    font-size: 12.5px;
    color: var(--text-muted);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: .2s transform, .2s box-shadow;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 24px rgba(139, 63, 245, .3);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: .85;
    transform: none;
    box-shadow: 0 8px 24px rgba(139, 63, 245, .22);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(139, 63, 245, .4);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.trust-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--purple-deep);
    flex: 0 0 16px;
}

/* Video Card in Sidebar */
.video-card {
    background: var(--lavender-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px 20px 22px;
}

.video-card h3 {
    font-size: 15.5px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 55%, var(--purple-light) 100%);
    cursor: pointer;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .18) 0, transparent 40%),
        radial-gradient(circle at 80% 75%, rgba(255, 255, 255, .12) 0, transparent 45%);
}

.play-btn {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: .2s transform;
}

.play-btn:hover {
    transform: scale(1.08);
}

.play-btn svg {
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 2;
}

.video-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
}

/* Info Panel in Sidebar */
.info-panel {
    background: var(--lavender-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 26px 22px;
}

.info-panel h3 {
    font-size: 17px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.info-item .icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: var(--lavender-soft);
    color: var(--purple-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.info-item h4 {
    font-size: 13.5px;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.info-item p {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Field Validation States */
.field.error input,
.field.error select,
.field.error textarea {
    border-color: #E24C4C;
    background: #FDF1F1;
}

.error-msg {
    display: none;
    font-size: 12px;
    color: #E24C4C;
    margin-top: 6px;
    font-weight: 500;
}

.field.error .error-msg {
    display: block;
}

.form-alert {
    border-radius: 12px;
    padding: 13px 14px;
    margin-bottom: 18px;
    font-size: 13.5px;
    font-weight: 600;
}

.form-alert.success {
    background: #ECFDF3;
    border: 1px solid #A7F3D0;
    color: #047857;
}

.form-alert.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

/* ==========================================================
   THANK YOU PAGES STYLES
   ========================================================== */
.page-shell {
    width: min(100%, 1140px);
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.thankyou-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.thankyou-card,
.info-card {
    background: var(--lavender-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.thankyou-card {
    padding: 36px 34px 30px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

.status-pill svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.thankyou-card h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 14px;
}

.thankyou-card h1 .accent {
    color: var(--purple-deep);
}

.thankyou-card p.lead {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Highlight Box (standard thankyou) */
.highlight-box {
    background: linear-gradient(135deg, rgba(139, 63, 245, .10), rgba(109, 40, 217, .05));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.highlight-box h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.highlight-box p {
    color: var(--text-muted);
    font-size: 14px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(139, 63, 245, .26);
}

.btn-secondary {
    background: #fff;
    color: var(--purple-deep);
    border: 1px solid var(--border-soft);
}

/* Payment Panel (The ₹500 Qualification Box) */
.payment-panel {
    background: linear-gradient(135deg, #F8F5FF 0%, #FFFFFF 100%);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
}

.payment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(227, 214, 250, 0.65);
}

.payment-heading h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}

.payment-heading p {
    color: var(--text-muted);
    font-size: 13px;
}

.payment-amount {
    color: var(--purple-deep);
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}

.benefit-list {
    display: grid;
    gap: 12px;
    padding-top: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: var(--lavender-soft);
    color: var(--purple-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.benefit-icon svg {
    width: 15px;
    height: 15px;
}

.benefit-text h3 {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 2px;
}

.benefit-text p {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.payment-cta {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 14px;
}

.payment-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.3);
    color: #ffffff;
}

.payment-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.payment-cta:hover svg {
    transform: translateX(3px);
}

.disclaimer-text {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.55;
    text-align: center;
}

.disclaimer-text a {
    color: var(--purple-deep);
    font-weight: 600;
    text-decoration: underline;
}

/* Info Card & Timeline */
.info-card {
    padding: 28px 24px 24px;
}

.info-card h3.card-title,
.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

.timeline {
    display: grid;
    gap: 16px;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: -16px;
    width: 2px;
    background: var(--border-soft);
}

.timeline-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lavender-soft);
    color: var(--purple-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13.5px;
    z-index: 1;
}

.timeline-item.active .timeline-badge {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.22);
}

.timeline-content {
    padding-top: 4px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.timeline-header h4,
.timeline-item h4 {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
}

.step-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.step-pill.done {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.step-pill.current {
    background: var(--lavender-soft);
    border: 1px solid var(--border-soft);
    color: var(--purple-deep);
}

.timeline-content p,
.timeline-item p {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.info-highlight {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--lavender-soft);
    border: 1px solid var(--border-soft);
}

.info-highlight h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-highlight h4 svg {
    width: 15px;
    height: 15px;
    color: var(--purple-deep);
}

.info-highlight p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.meta-strip {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-strip span {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 600;
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    border-top: 1px solid var(--border-soft);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--lavender-card);
    margin-top: auto;
}

footer a {
    color: var(--purple-deep);
    transition: color 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
}

/* Transaction Details Box (Payment Success) */
.txn-box {
    background: linear-gradient(135deg, #F8F5FF 0%, #FFFFFF 100%);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.txn-item strong {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.txn-item span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================== */
@media (max-width: 960px) {
    .apply-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-stack {
        position: static;
    }

    .thankyou-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-shell {
        padding: 24px 16px 40px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-panel {
        padding: 28px 20px;
    }

    .thankyou-card,
    .info-card {
        padding: 24px 18px;
    }

    .cta-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .trust-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .payment-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .payment-amount {
        font-size: 2.2rem;
    }
}
