/* Contact page — details (left) + message form card (right).
   Homepage system: soft section band #f7faff, white 16px cards with #e2eaf4 borders,
   Sora headings, Inter body, brand blue #245cb5. */
.ct-section {
    --ct-blue: #245cb5;
    --ct-blue-dark: #1d4c99;
    --ct-ink: #172d40;
    --ct-text: #334659;
    --ct-muted: #5b6c80;
    --ct-line: #e2eaf4;
    --ct-field: #d6e1ee;
    --ct-error: #d03b3b;
    padding: clamp(48px, 6vw, 80px) 24px clamp(64px, 7vw, 96px);
    background: #f7faff;
    border-bottom: 1px solid #e5edf7;
    color: var(--ct-ink);
    font-family: 'Inter', system-ui, sans-serif;
}
.ct-section *, .ct-section *::before, .ct-section *::after { box-sizing: border-box; }
.ct-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(32px, 4vw, 56px);
    max-width: 1080px;
    margin-inline: auto;
}

/* ── Details ───────────────────────────────────────────── */
.ct-info { padding-top: 8px; }
.ct-info__title { margin: 0; color: var(--ct-ink); font: 700 clamp(24px, 2.4vw, 30px)/1.25 'Sora', system-ui, sans-serif; letter-spacing: -.03em; }
.ct-info__lead { margin: 12px 0 0; color: #52647a; font-size: 16px; line-height: 1.7; }

.ct-details { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.ct-detail { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--ct-line); border-radius: 14px; background: #fff; }
.ct-detail__icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #edf3fc; color: var(--ct-blue); }
.ct-detail__icon svg { width: 19px; height: 19px; }
.ct-detail__body { display: flex; flex-direction: column; min-width: 0; }
.ct-detail__label { color: var(--ct-muted); font-size: 12.5px; line-height: 1.4; }
.ct-detail__value { color: var(--ct-ink); font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.ct-detail__value--link { text-decoration: none; transition: color .15s; }
.ct-detail__value--link:hover { color: var(--ct-blue); }

.ct-help { margin-top: 24px; padding: 18px 20px; border: 1px solid #d4e1f3; border-radius: 14px; background: #edf3fc; }
.ct-help__title { margin: 0; color: var(--ct-ink); font: 700 15px/1.4 'DM Sans', system-ui, sans-serif; }
.ct-help__text { margin: 4px 0 0; color: #52647a; font-size: 14px; line-height: 1.6; }
.ct-help__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ct-blue); font-size: 14px; font-weight: 600; text-decoration: none; }
.ct-help__link svg { width: 15px; height: 15px; transition: transform .15s; }
.ct-help__link:hover { color: var(--ct-blue-dark); }
.ct-help__link:hover svg { transform: translateX(2px); }

/* ── Form card ─────────────────────────────────────────── */
.ct-card {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--ct-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(23, 45, 64, .04), 0 18px 36px -26px rgba(23, 45, 64, .28);
}
.ct-card__title { margin: 0; color: var(--ct-ink); font: 700 22px/1.3 'Sora', system-ui, sans-serif; letter-spacing: -.025em; }
.ct-card__sub { margin: 6px 0 0; color: var(--ct-muted); font-size: 14px; line-height: 1.5; }

.ct-form { display: grid; gap: 18px; margin-top: 24px; }
.ct-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-field { display: flex; flex-direction: column; min-width: 0; }
.ct-label { margin-bottom: 7px; color: var(--ct-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.ct-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--ct-field);
    border-radius: 10px;
    background: #fff;
    color: var(--ct-ink);
    font: 400 15px/1.5 'Inter', system-ui, sans-serif;
    transition: border-color .15s, box-shadow .15s;
}
.ct-input::placeholder { color: #8a99ab; }
.ct-input:hover { border-color: #c3d2e5; }
.ct-input:focus { outline: none; border-color: var(--ct-blue); box-shadow: 0 0 0 3px rgba(36, 92, 181, .15); }
.ct-select {
    padding-right: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6c80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}
.ct-select:invalid, .ct-select option[value=""] { color: #8a99ab; }
.ct-textarea { height: auto; min-height: 148px; padding: 12px 14px; resize: vertical; }

/* Validation (JustValidate) */
.error-container:empty { display: none; }
.ct-form .just-validate-error-label { display: block; padding-top: 6px; color: var(--ct-error); font-size: 13px; line-height: 1.4; }
.ct-form .just-validate-error-field { border-color: var(--ct-error) !important; }
.ct-form .just-validate-error-field:focus { box-shadow: 0 0 0 3px rgba(208, 59, 59, .14); }

.ct-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: var(--ct-blue);
    color: #fff;
    font: 600 15.5px/1.2 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.ct-submit svg { width: 17px; height: 17px; }
.ct-submit:hover:not(:disabled) { background: var(--ct-blue-dark); box-shadow: 0 10px 20px -12px rgba(36, 92, 181, .6); }
.ct-submit:focus-visible { outline: 3px solid #8aace0; outline-offset: 3px; }
.ct-submit:disabled { opacity: .7; cursor: not-allowed; }
.ct-spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: ct-spin .8s linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }

.ct-legal { margin: 0; color: #8292a4; font-size: 12.5px; line-height: 1.6; text-align: center; }
.ct-legal a { color: var(--ct-blue); text-decoration: none; }
.ct-legal a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
    .ct-layout { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
    .ct-info { padding-top: 0; }
    .ct-card { order: -1; } /* the form is the main task, so it comes first on narrow screens */
}
@media (max-width: 560px) {
    .ct-section { padding-inline: 16px; }
    .ct-form__row { grid-template-columns: minmax(0, 1fr); }
    .ct-input { font-size: 16px; } /* stops iOS zooming into fields */
}
@media (prefers-reduced-motion: reduce) {
    .ct-spinner { animation-duration: 1.6s; }
    .ct-input, .ct-submit, .ct-help__link svg { transition: none; }
}
