/* ============================================================
   RENTIT CONTACT PAGE
   Builds on landingpage/css/home.css primitives.
   All colours come from theme.css (--home-*).
   ============================================================ */

/* =====================================================
   MESSAGE FORM
   ===================================================== */
.contact-form {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--home-line);
    border-radius: 12px;
    box-shadow: var(--home-shadow-card);
}

.contact-form-title {
    font-size: 17px;
    font-weight: 700;
}

.contact-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.contact-form-fields .home-field--full {
    grid-column: 1 / -1;
}

.home-field .optional {
    font-weight: 400;
    color: var(--home-ink-faint);
}

.home-field textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px;
    font: inherit;
    font-size: 15px;
    line-height: 1.55;
    color: var(--home-ink);
    background: var(--bg-card);
    border: 1px solid var(--home-line-strong);
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-field textarea:focus {
    outline: none;
    border-color: var(--home-ink);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.home-field input::placeholder,
.home-field textarea::placeholder {
    color: var(--home-ink-faint);
    opacity: 1;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.contact-form-note {
    font-size: 13px;
    line-height: 1.45;
    color: var(--home-ink-faint);
}

.contact-form-status {
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--home-ink);
    background: var(--home-surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.contact-form-status[hidden] {
    display: none;
}

.contact-form-status a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================================================
   DETAILS COLUMN
   ===================================================== */
.contact-aside {
    position: sticky;
    top: 92px;
}

.fact-sheet dd small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    color: var(--home-ink-faint);
}

.fact-sheet address {
    font-style: normal;
}

.nowrap {
    white-space: nowrap;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .contact-aside {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 18px;
    }

    .contact-form-fields {
        grid-template-columns: 1fr;
    }

    .contact-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form-footer .btn {
        width: 100%;
    }
}
