/**
 * Standalone instructor promo landing page.
 * Reuses the theme's design tokens (var(--navy-*), --orange, fonts) and the
 * .btn / .atmosphere / .bloom classes from the theme stylesheet.
 */

.dcat-landing-body {
    margin: 0;
    background: var(--navy-deeper, #1c3760);
    font-family: var(--font-body, sans-serif);
}

.dcat-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background:
        radial-gradient(ellipse 120% 90% at 50% -10%, var(--navy-header, #395187) 0%, var(--navy-deeper, #1c3760) 60%);
    color: #fff;
}

.dcat-bloom-1 { width: 560px; height: 560px; bottom: -240px; right: -180px; }
.dcat-bloom-2 { width: 400px; height: 400px; top: -160px; left: -120px; }

.dcat-landing-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

/* Logos */
.dcat-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
/* Sized per-logo (not equal height) so the two different aspect ratios read
   as balanced: the taller AI Training mark vs. the wider, shorter Summit mark. */
.dcat-logos img { width: auto; max-width: 44%; }
.dcat-logo-ai { height: 60px; }
.dcat-logo-summit { height: 42px; }
.dcat-logo-x { color: rgba(255, 255, 255, 0.5); font-size: 1.5rem; font-weight: 300; }

/* Card */
.dcat-card {
    background: #fff;
    color: var(--text, #393E41);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: left;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.dcat-card h1 {
    font-family: var(--font-display, sans-serif);
    font-size: 1.7rem;
    line-height: 1.15;
    margin: 0.35rem 0 0.75rem;
    color: var(--navy-deep, #274573);
}
.dcat-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--orange, #f6921e);
}
.dcat-lede { color: var(--text-secondary, #666); font-size: 1rem; line-height: 1.55; margin: 0 0 1.5rem; }

/* Form */
.dcat-form label { display: block; margin-bottom: 1rem; }
.dcat-form label > span {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy-deep, #274573);
    margin-bottom: 0.3rem;
}
.dcat-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border, #e0dfdb);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text, #393E41);
}
.dcat-form input:focus {
    outline: none;
    border-color: var(--orange, #f6921e);
    box-shadow: 0 0 0 3px rgba(246, 146, 30, 0.18);
}
.dcat-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 2.2rem 0.7rem 0.85rem;
    border: 1px solid var(--border, #e0dfdb);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text, #393E41);
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23808589' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    cursor: pointer;
}
.dcat-form select:focus {
    outline: none;
    border-color: var(--orange, #f6921e);
    box-shadow: 0 0 0 3px rgba(246, 146, 30, 0.18);
}
.dcat-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dcat-form-row label { margin-bottom: 1rem; }

/* Multi-select focus question */
.dcat-checks { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.dcat-checks legend {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy-deep, #274573);
    margin-bottom: 0.55rem;
    padding: 0;
}
.dcat-checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1.25rem; }
.dcat-checks .dcat-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-weight: 400;
    cursor: pointer;
}
.dcat-checks .dcat-check input {
    width: auto;
    margin: 0.15rem 0 0;
    box-shadow: none;
    accent-color: var(--orange, #f6921e);
    flex: none;
}
.dcat-checks .dcat-check > span {
    display: inline;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text, #393E41);
    margin: 0;
    line-height: 1.35;
}
.dcat-form .btn-block { width: 100%; margin-top: 0.5rem; }
.dcat-fineprint { font-size: 0.78rem; color: var(--text-muted, #808589); text-align: center; margin: 0.75rem 0 0; }

/* GDPR consent (modern toggle) + cookie note */
.dcat-consent { margin: 0 0 1rem; text-align: left; }
.dcat-consent-head { font-size: 0.82rem; font-weight: 700; color: var(--navy-deep, #274573); margin-bottom: 0.5rem; }
.dcat-form .dcat-toggle { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.55rem; cursor: pointer; font-weight: 400; }
.dcat-consent .dcat-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.dcat-consent .dcat-toggle-track {
    position: relative;
    flex: none;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
    border-radius: 999px;
    background: #cbd2dc;
    transition: background 0.18s ease;
}
.dcat-consent .dcat-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.18s ease;
}
.dcat-toggle-input:checked ~ .dcat-toggle-track { background: var(--orange, #f6921e); }
.dcat-toggle-input:checked ~ .dcat-toggle-track .dcat-toggle-thumb { transform: translateX(20px); }
.dcat-toggle-input:focus-visible ~ .dcat-toggle-track { box-shadow: 0 0 0 3px rgba(246, 146, 30, 0.35); }
.dcat-consent .dcat-toggle-text { font-size: 0.9rem; font-weight: 600; color: var(--navy-deep, #274573); margin: 0; }
.dcat-consent-text { font-size: 0.8rem; line-height: 1.45; color: var(--text-secondary, #666); margin: 0; }
.dcat-consent-text a, .dcat-cookie-note a { color: var(--blue, #1b4799); }
.dcat-cookie-note { font-size: 0.72rem; line-height: 1.45; color: var(--text-muted, #808589); text-align: center; margin: 0.75rem 0 0; }
/* Highlight the consent block if a submit is attempted without agreeing */
.dcat-consent-invalid .dcat-consent { outline: 2px solid #e6b0aa; outline-offset: 6px; border-radius: 8px; }

/* Honeypot — visually hidden but not display:none (bots skip display:none) */
.dcat-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

/* Errors */
.dcat-errors {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #a12b1e;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}
.dcat-errors p { margin: 0.15rem 0; }

/* Success / promo code */
.dcat-promo {
    background: var(--card-tint, #f7f9ff);
    border: 1px dashed var(--border-blue, #d5dff0);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    margin: 0 0 1.5rem;
}
.dcat-promo-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted, #808589);
    margin-bottom: 0.35rem;
}
.dcat-promo-code {
    display: block;
    font-family: var(--font-display, monospace);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--navy-deep, #274573);
}
.dcat-card-success .btn, .dcat-card-promo .btn { display: inline-block; }

/* Compact the success card so the optional profiling step sits higher / in view */
.dcat-card-success { padding: 1.6rem 1.75rem; }
.dcat-card-success h1 { font-size: 1.3rem; margin: 0.25rem 0 0.4rem; }
.dcat-card-success .dcat-lede { font-size: 0.9rem; margin-bottom: 0.9rem; }
.dcat-card-success .dcat-promo { padding: 0.75rem 1rem; margin-bottom: 1rem; }
.dcat-card-success .dcat-promo-label { margin-bottom: 0.1rem; }
.dcat-card-success .dcat-promo-code { font-size: 1.6rem; }
.dcat-card-success .btn-lg { padding: 0.65rem 1.4rem; font-size: 0.95rem; }

/* Optional profiling step (shown under the code on the success screen) */
.dcat-profile { margin-top: 0.9rem; }
.dcat-profile h2 {
    font-family: var(--font-display, sans-serif);
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--navy-deep, #274573);
    margin: 0.35rem 0 0.5rem;
}
.dcat-profile .btn-block { width: 100%; }
.dcat-profile-thanks { margin-top: 1.25rem; text-align: center; }
.dcat-profile-thanks p { margin: 0; color: var(--navy-deep, #274573); font-weight: 600; }

@media (max-width: 520px) {
    .dcat-card { padding: 1.75rem 1.25rem; }
    .dcat-form-row { grid-template-columns: 1fr; gap: 0; }
    .dcat-checks-grid { grid-template-columns: 1fr; }
    .dcat-logo-ai { height: 46px; }
    .dcat-logo-summit { height: 33px; }
}
