/* College landing — public portal layout (matches find-colleges / signup) */

body.college-landing-page {
    background: var(--lp-bg, #f4f6fa);
    overflow-x: hidden;
    --primary: #1c3269;
    --primary-dark: #122347;
    --success: #3a9e4a;
    --success-dark: #2d8a3c;
    --text: #0a152e;
    --muted: #5c6b82;
    --border: #dde3ed;
    --bg-soft: #f4f6fa;
    --bg-card: #ffffff;
    --danger: #b8222a;
}

body.college-landing-page .site-main {
    padding: 0;
    min-height: 0;
}

.clp-page {
    background: var(--lp-bg, #f4f6fa);
    overflow-x: hidden;
    max-width: 100%;
}

.clp-hero .lp-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* Hero */
.clp-hero {
    position: relative;
    background: linear-gradient(145deg, var(--lp-blue, #1c3269) 0%, var(--lp-navy, #122347) 55%, var(--lp-dark, #0a152e) 100%);
    color: #fff;
    padding: 28px 0 32px;
    overflow: hidden;
}

.clp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 12% 25%, rgba(58, 158, 74, 0.14), transparent),
        radial-gradient(ellipse 50% 40% at 88% 75%, rgba(184, 34, 42, 0.1), transparent);
    pointer-events: none;
}

.clp-hero > .lp-container {
    position: relative;
    z-index: 1;
}

.clp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 14px;
}

.clp-back-link:hover {
    color: #fff;
}

.clp-hero-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.clp-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 6px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.clp-hero-text {
    flex: 1;
    min-width: 0;
}

.clp-hero-text h1 {
    margin: 8px 0 8px;
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.clp-hero-lead {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.93;
    max-width: 640px;
}

.clp-hero-loc {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clp-status-badge.closed {
    background: rgba(220, 53, 69, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.clp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.clp-hero-badges span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 11px;
    font-weight: 700;
}

.clp-flow-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 14px;
}

.clp-flow-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.clp-flow-arrow {
    opacity: 0.6;
    font-size: 12px;
}

.clp-hero-meta {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.clp-hero-meta a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Banner */
.clp-banner {
    padding: 16px 0 0;
}

.clp-banner-img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--lp-radius, 16px);
    border: 1px solid var(--lp-border, #dde3ed);
    box-shadow: 0 8px 24px rgba(18, 35, 71, 0.08);
}

/* Main stack */
.clp-main {
    padding: 20px 0 48px;
}

.clp-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clp-message {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.clp-message-success,
body.college-landing-page .message-box.message-success {
    background: #e7f7ec;
    color: #146c2e;
    border: 1px solid #b7e4c7;
}

.clp-message-error,
body.college-landing-page .message-box.message-error {
    background: #fdeaea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}

.clp-card,
.college-info-card {
    background: #fff;
    border: 1px solid var(--lp-border, #dde3ed);
    border-radius: var(--lp-radius, 16px);
    box-shadow: 0 8px 28px rgba(18, 35, 71, 0.06);
    padding: 22px 20px;
}

.clp-card-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lp-border, #dde3ed);
}

.clp-card-head h2,
.clp-card > h2,
.college-info-card > h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lp-dark, #0a152e);
}

.clp-card-head h2 .bi,
.clp-card > h2 .bi {
    color: var(--lp-blue, #1c3269);
}

.clp-card-head p {
    margin: 0;
    font-size: 14px;
    color: var(--lp-muted, #5c6b82);
    line-height: 1.5;
}

.clp-card-body {
    padding: 0;
}

.clp-enquiry-card {
    border-top: 4px solid var(--lp-green, #3a9e4a);
}

body.college-landing-page .form-shell {
    max-width: none;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.college-landing-page .form-shell-header {
    display: none;
}

body.college-landing-page .form-shell-body {
    padding: 0;
}

body.college-landing-page .btn-primary {
    background: var(--lp-blue, #1c3269);
    border-color: var(--lp-blue, #1c3269);
}

body.college-landing-page .btn-success {
    background: var(--lp-green, #3a9e4a);
    border-color: var(--lp-green, #3a9e4a);
}

body.college-landing-page .btn-submit {
    background: var(--lp-blue, #1c3269);
}

body.college-landing-page .college-success-login {
    background: var(--lp-blue, #1c3269);
}

body.college-landing-page .college-brochure-btn {
    background: var(--lp-blue, #1c3269);
}

/* Legacy — hide removed chrome */
.college-top-bar,
.college-page,
.college-banner-wrap {
    display: none !important;
}

/* College landing — extends enquiry-form.css */

.college-info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.college-contact-card {
    margin-top: 0;
}

.college-contact-dl {
    margin: 0 0 14px;
}

.college-contact-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.college-contact-row:last-child {
    border-bottom: 0;
}

.college-contact-row dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.college-contact-row dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.college-contact-row dd a {
    color: inherit;
    text-decoration: none;
}

.college-contact-row dd a:hover {
    color: var(--primary);
}

.college-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-whatsapp-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.college-contact-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    background: #fff;
}

.college-contact-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.college-map-wrap {
    margin-top: 4px;
}

.college-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.college-map-link:hover {
    text-decoration: underline;
}

.college-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.college-header-badges span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.college-section-lead {
    margin: -4px 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.college-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.college-course-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.college-course-card h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
}

.college-course-meta {
    display: inline-block;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.college-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.college-meta-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.college-about-body {
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.college-subheading {
    margin: 18px 0 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}

.college-highlights-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text);
}

.college-highlights-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.college-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
}

.college-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.college-brochure-wrap {
    margin-top: 16px;
}

.college-fee-eligibility {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.college-fee-line {
    margin: 0 0 8px;
    font-size: 14px;
}

.college-eligibility-block {
    margin-top: 8px;
}

.college-eligibility-block p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.college-brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.college-brochure-btn:hover {
    color: #fff;
    opacity: 0.92;
}

.college-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.college-course-list li {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.college-course-list li span {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.college-contact-list {
    display: grid;
    gap: 10px;
}

.college-contact-list a,
.college-contact-list .contact-row {
    display: block;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
}

.college-contact-list a:hover {
    border-color: var(--primary);
}

.college-contact-list strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 2px;
}

/* Success state — matches site theme */
.college-success {
    text-align: center;
    padding: 10px 0 6px;
}

.college-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}

.college-success h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
}

.college-success p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
}

.college-success-next {
    margin: 0 0 18px;
    padding: 14px 16px;
    text-align: left;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 14px;
    color: var(--muted);
}

.college-success-next strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.college-success-next ol {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.55;
}

.college-success-details {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    text-align: left;
    background: var(--bg-soft);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.college-success-details li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.college-success-details li:last-child {
    border-bottom: none;
}

.college-success-details span {
    color: var(--muted);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    background: var(--success);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.college-success-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.college-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.college-success-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.college-success-more:hover {
    background: #e5e7eb;
    color: #111827 !important;
}

.college-success-login:hover {
    color: #fff;
    opacity: 0.92;
}

@media (max-width: 768px) {
    .clp-hero-brand {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .clp-hero-logo {
        width: 52px;
        height: 52px;
        padding: 4px;
        border-radius: 12px;
    }

    .clp-hero-loc {
        font-size: 13px;
        align-items: flex-start;
        line-height: 1.4;
    }

    .clp-hero-loc .bi {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .clp-hero-meta {
        font-size: 13px;
        line-height: 1.65;
    }

    .clp-banner {
        padding-top: 12px;
    }

    .clp-banner-img {
        border-radius: 12px;
        max-height: 200px;
    }

    .clp-main {
        padding: 16px 0 24px;
    }

    .clp-card,
    .college-info-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .clp-card-head {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .clp-card-head h2,
    .clp-card > h2,
    .college-info-card > h2 {
        font-size: 1.05rem;
        flex-wrap: wrap;
        line-height: 1.3;
    }

    .clp-card-head p {
        font-size: 13px;
    }

    /* enquiry-form.css mobile rules — keep card layout */
    body.college-landing-page .form-shell {
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    body.college-landing-page .form-shell-header,
    body.college-landing-page .form-shell-body {
        padding: 0;
    }

    body.college-landing-page .form-grid {
        gap: 14px;
    }

    body.college-landing-page .form-submit-wrap {
        position: static;
        background: transparent;
        padding: 8px 0 0;
        margin: 0;
        z-index: auto;
    }

    body.college-landing-page .phone-row {
        flex-direction: column;
        align-items: stretch;
    }

    body.college-landing-page .phone-row input,
    body.college-landing-page .phone-row .btn {
        width: 100%;
        flex: none;
    }

    body.college-landing-page .otp-row {
        flex-direction: column;
        align-items: stretch;
    }

    body.college-landing-page .otp-row .btn {
        width: 100%;
    }

    body.college-landing-page .form-steps {
        gap: 4px;
        margin-bottom: 16px;
    }

    body.college-landing-page .form-step-label {
        font-size: 9px;
        line-height: 1.15;
    }

    body.college-landing-page .form-step-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    body.college-landing-page .timer-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .college-contact-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 10px 0;
    }

    .college-contact-row dt {
        font-size: 10px;
    }

    .college-contact-row dd {
        font-size: 14px;
        word-break: break-word;
    }

    .college-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .college-contact-actions .btn-whatsapp-sm,
    .college-contact-link {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
    }

    .college-courses-grid {
        grid-template-columns: 1fr;
    }

    .college-course-card {
        padding: 12px 14px;
    }

    .college-success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .college-success-login,
    .college-success-more {
        width: 100%;
        box-sizing: border-box;
    }

    .college-brochure-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .college-success-details li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .college-meta-badges {
        gap: 6px;
    }

    .college-meta-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 400px) {
    .clp-hero-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .clp-hero-loc {
        justify-content: center;
    }

    .clp-hero-badges {
        justify-content: center;
    }

    .clp-hero-meta {
        text-align: center;
    }
}
