/* ==========================================================================
   Contact page — visual language taken from the public prototype
   (naturalistico.netlify.app/naturalistico-public): Fraunces headings with an
   italic teal accent, Inter body, sky/teal palette, 18px cards, soft shadows.
   Everything is scoped under .ct-page so it cannot leak into other pages.
   Fonts (Inter, Fraunces) are already preloaded by lms/layouts/learn_school.
   ========================================================================== */

.ct-page {
    --ct-sky: #3FA9E8;
    --ct-sky-deep: #2286C7;
    --ct-sky-tint: #EDF6FC;
    --ct-sky-line: #D3E9F8;
    --ct-ink: #12303B;
    --ct-teal: #0F6E78;
    --ct-teal-tint: #EAF4F3;
    --ct-mist: #F6FAFA;
    --ct-line: #E6EDEC;
    --ct-text: #3D5058;
    --ct-text-soft: #66787E;
    --ct-danger: #C0392B;
    --ct-radius: 18px;
    --ct-shadow: 0 1px 2px rgba(15, 80, 95, .04), 0 8px 24px -10px rgba(15, 80, 95, .09);
    --ct-shadow-lift: 0 3px 6px rgba(15, 80, 95, .05), 0 18px 40px -14px rgba(15, 80, 95, .16);

    background: #FDFEFE;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ct-text);
    line-height: 1.65;
    padding: 74px 0 90px;
}

.ct-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
}

.ct-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 46px;
    align-items: start;
}

/* ---------- left column ---------- */

.ct-intro {
    position: sticky;
    top: 96px;
}

.ct-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ct-sky-deep);
    margin: 0;
}

.ct-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.012em;
    color: var(--ct-ink);
    margin: 10px 0 0;
}

.ct-lead {
    font-size: 15.5px;
    color: var(--ct-text-soft);
    margin: 14px 0 0;
    max-width: 42ch;
}

.ct-support {
    background: var(--ct-sky-tint);
    border: 1px solid var(--ct-sky-line);
    border-radius: var(--ct-radius);
    padding: 20px 22px;
    margin-top: 28px;
}

.ct-support-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--ct-ink);
    margin: 0;
}

.ct-support-text {
    font-size: 14px;
    color: var(--ct-text-soft);
    margin: 7px 0 0;
}

.ct-support-mail {
    display: inline-block;
    margin-top: 13px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ct-sky-deep);
    text-decoration: none;
    border-bottom: 1.5px solid var(--ct-sky-line);
    padding-bottom: 2px;
    transition: border-color .15s ease;
}

.ct-support-mail:hover,
.ct-support-mail:focus {
    color: var(--ct-sky-deep);
    border-bottom-color: var(--ct-sky-deep);
}

.ct-points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.ct-points li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: var(--ct-text-soft);
}

.ct-points li + li {
    margin-top: 12px;
}

.ct-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ct-sky);
    box-shadow: 0 0 0 4px var(--ct-sky-tint);
}

.ct-points a {
    color: var(--ct-sky-deep);
    font-weight: 600;
    text-decoration: none;
}

.ct-points a:hover,
.ct-points a:focus {
    color: var(--ct-sky-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ct-faq-link .ct-arrow {
    display: inline-block;
    margin-left: 2px;
    transition: transform .15s ease;
}

.ct-faq-link:hover .ct-arrow,
.ct-faq-link:focus .ct-arrow {
    transform: translateX(3px);
}

.ct-photo {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--ct-radius);
    margin-top: 28px;
    box-shadow: var(--ct-shadow);
}

/* ---------- right column: the form card ---------- */

.ct-form-card {
    background: #FFFFFF;
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow-lift);
    padding: 34px 36px 36px;
}

.ct-form-head {
    margin-bottom: 26px;
}

.ct-form-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--ct-ink);
    line-height: 1.2;
    margin: 0;
}

.ct-form-title em {
    font-style: italic;
    color: var(--ct-teal);
}

.ct-form-note {
    font-size: 13.5px;
    color: var(--ct-text-soft);
    margin: 6px 0 0;
}

.ct-field + .ct-field {
    margin-top: 18px;
}

.ct-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ct-row .ct-field + .ct-field {
    margin-top: 0;
}

.ct-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ct-text-soft);
    margin: 0 0 7px;
}

.ct-input {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ct-ink);
    background: var(--ct-mist);
    border: 1px solid var(--ct-line);
    border-radius: 12px;
    padding: 13px 15px;
    line-height: 1.5;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ct-input::placeholder {
    color: #9AABB1;
}

.ct-input:hover {
    border-color: var(--ct-sky-line);
}

.ct-input:focus {
    outline: 0;
    background: #FFFFFF;
    border-color: var(--ct-sky);
    box-shadow: 0 0 0 3px rgba(63, 169, 232, .16);
}

textarea.ct-input {
    min-height: 148px;
    resize: vertical;
}

.ct-field.has-error .ct-input {
    border-color: var(--ct-danger);
    background: #FDF3F2;
}

.ct-error {
    display: block;
    font-size: 12.5px;
    color: var(--ct-danger);
    margin-top: 6px;
}

.ct-captcha {
    margin-top: 22px;
}

.ct-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.ct-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--ct-sky);
    color: #FFFFFF;
    font-family: inherit;
    font-weight: 600;
    font-size: 14.5px;
    padding: 13px 30px;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease;
    box-shadow: 0 6px 16px -6px rgba(63, 169, 232, .45);
}

.ct-submit:hover,
.ct-submit:focus {
    background: var(--ct-sky-deep);
    color: #FFFFFF;
}

.ct-submit:active {
    transform: scale(.985);
}

.ct-privacy {
    font-size: 12.5px;
    color: var(--ct-text-soft);
    margin: 0;
}

/* The theme's .alert sits inside the card, so soften it to match. */
.ct-form-card .alert {
    border-radius: 12px;
    font-size: 14px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .ct-page {
        padding: 52px 0 70px;
    }
    .ct-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .ct-intro {
        position: static;
    }
    /* Decorative only — dropped so the form is reachable without scrolling. */
    .ct-photo {
        display: none;
    }
}

@media (max-width: 640px) {
    .ct-page {
        padding: 40px 0 56px;
    }
    .ct-wrap {
        padding: 0 16px;
    }
    .ct-form-card {
        padding: 24px 20px 26px;
    }
    .ct-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .ct-row .ct-field + .ct-field {
        margin-top: 18px;
    }
    .ct-actions {
        gap: 12px;
    }
    .ct-submit {
        width: 100%;
    }
}
