/* ============================================================================
 * Money Track — Contact page form + sidebar.
 *
 * Loaded layout-wide via layouts/guest.blade.php. All `.mkt-ct-*` namespaced
 * to avoid colliding with the rest of the marketing CSS. Reuses the marketing
 * design tokens (--mkt-*) defined in mt-marketing.css.
 * ============================================================================ */

.mkt-ct-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: start;
}

/* === Form card =========================================================== */
.mkt-ct-form-card {
    background: #ffffff;
    border: 1px solid var(--mkt-hairline, #e5e5ea);
    border-radius: var(--mkt-radius, 18px);
    box-shadow: var(--mkt-shadow, 0 4px 14px rgba(0, 0, 0, 0.04));
    padding: 30px;
}

.mkt-ct-form { display: flex; flex-direction: column; gap: 18px; }

.mkt-ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mkt-ct-field { display: flex; flex-direction: column; gap: 7px; }

.mkt-ct-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--mkt-ink, #1d1d1f);
}

.mkt-ct-field input,
.mkt-ct-field textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 15px;
    color: var(--mkt-ink, #1d1d1f);
    background: #fbfbfd;
    border: 1px solid var(--mkt-hairline, #e5e5ea);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mkt-ct-field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }

.mkt-ct-field input::placeholder,
.mkt-ct-field textarea::placeholder { color: #a9a9b0; }

.mkt-ct-field input:focus,
.mkt-ct-field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--mkt-brand, #0071e3);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.mkt-ct-field input[aria-invalid="true"],
.mkt-ct-field textarea[aria-invalid="true"] {
    border-color: #ff3b30;
    background: #fff7f7;
}

.mkt-ct-err { margin: 0; font-size: 13px; color: #d70015; }

/* Honeypot — visually and physically removed for humans. */
.mkt-ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* === Submit button ======================================================= */
.mkt-ct-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--mkt-brand, #0071e3);
    border: none;
    border-radius: 12px;
    padding: 13px 26px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.25);
}
.mkt-ct-submit:hover { background: #0062c4; box-shadow: 0 8px 22px rgba(0, 113, 227, 0.32); }
.mkt-ct-submit:active { transform: translateY(1px); }
.mkt-ct-submit:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.4); outline-offset: 2px; }

.mkt-ct-fineprint {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--mkt-muted, #6e6e73);
    line-height: 1.55;
}
.mkt-ct-fineprint a { color: var(--mkt-brand, #0071e3); text-decoration: none; }
.mkt-ct-fineprint a:hover { text-decoration: underline; }

/* === Alerts ============================================================== */
.mkt-ct-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 17px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
}
.mkt-ct-alert i { font-size: 19px; flex-shrink: 0; margin-top: 1px; }
.mkt-ct-alert div { display: flex; flex-direction: column; gap: 2px; }
.mkt-ct-alert.is-success { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.mkt-ct-alert.is-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

/* === Sidebar ============================================================= */
.mkt-ct-side {
    background: #f7f8fb;
    border: 1px solid var(--mkt-hairline, #e5e5ea);
    border-radius: var(--mkt-radius, 18px);
    padding: 28px 26px;
}
.mkt-ct-side-title { font-size: 18px; font-weight: 700; margin: 0 0 20px; color: var(--mkt-ink, #1d1d1f); }

.mkt-ct-side-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.mkt-ct-side-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--mkt-brand, #0071e3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.mkt-ct-side-item div { display: flex; flex-direction: column; gap: 2px; }
.mkt-ct-side-item strong { font-size: 14px; color: var(--mkt-ink, #1d1d1f); }
.mkt-ct-side-item span { font-size: 14px; color: var(--mkt-muted, #6e6e73); }
.mkt-ct-side-item a { font-size: 14px; color: var(--mkt-brand, #0071e3); text-decoration: none; word-break: break-all; }
.mkt-ct-side-item a:hover { text-decoration: underline; }

.mkt-ct-side-links {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--mkt-hairline, #e5e5ea);
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.mkt-ct-side-links h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--mkt-ink, #1d1d1f); }
.mkt-ct-side-links a { font-size: 14px; color: var(--mkt-brand, #0071e3); text-decoration: none; }
.mkt-ct-side-links a:hover { text-decoration: underline; }

/* === Responsive ========================================================== */
@media (max-width: 880px) {
    .mkt-ct-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
    .mkt-ct-row { grid-template-columns: 1fr; }
    .mkt-ct-form-card { padding: 22px; }
    .mkt-ct-submit { align-self: stretch; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .mkt-ct-submit, .mkt-ct-field input, .mkt-ct-field textarea { transition: none; }
}
