/**
 * apply.css
 *
 * Styles specific to the rental application pages (apply/index.php, apply/thank-you.php).
 * Kept separate from style.css so changes here cannot affect the rest of the site.
 *
 * All classes in this file are ONLY used by pages in apply/.
 * Do NOT add styles here that are needed on any other page.
 */


/* ============================================================
   Apply form page — two-column layout (form + sidebar)
   ============================================================ */

/* 2/3 + 1/3 layout — main form left, sidebar right */
.form-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .form-with-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Sidebar — compact card text */
.apply-sidebar .value-card {
    padding: var(--spacing-md);
}

.apply-sidebar .value-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.apply-sidebar .value-card ol,
.apply-sidebar .value-card ul {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 1.25rem;
}

.apply-sidebar .value-card li {
    margin-bottom: 0.35rem;
}

.apply-sidebar .value-card p {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.apply-sidebar .value-icon {
    margin-bottom: 0.5rem;
}

.apply-sidebar .value-card ul,
.apply-sidebar .value-card ol {
    text-align: left;
}

/* Nights count label inside the midterm notice */
.notice-nights {
    font-weight: 400;
    opacity: 0.85;
}

/* Keep focused/invalid fields visible when the browser scrolls them into view. */
.main-booking-form input,
.main-booking-form select,
.main-booking-form textarea,
.main-booking-form button {
    scroll-margin-top: 9rem;
}

/* Highlight invalid apply fields without showing native tooltip bubbles. */
.main-booking-form .field-error {
    border-color: #b00020;
    box-shadow: 0 0 0 0.1875rem rgba(176, 0, 32, 0.18);
    background-color: #fff7f8;
}

.main-booking-form .field-error:focus {
    border-color: #8e0019;
    box-shadow: 0 0 0 0.25rem rgba(176, 0, 32, 0.24);
}


/* ============================================================
   Thank-you page — three-column confirmation card grid
   ============================================================ */

.apply-thankyou-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.apply-thankyou-grid .value-card {
    padding: var(--spacing-md);
}

.card-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-md) 0;
}

.apply-thankyou-grid .card-divider + h3 {
    margin-top: var(--spacing-sm);
}

@media (max-width: 768px) {
    .apply-thankyou-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* Application summary definition list inside the first card */
.application-summary-list {
    text-align: left;
    margin: var(--spacing-sm) 0 0;
    line-height: 1.4;
}

.application-summary-list dt {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.application-summary-list dt:first-child {
    margin-top: 0;
}

.application-summary-list dd {
    margin: 0.2rem 0 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.application-summary-list dd.stripe-reference {
    word-break: break-all;
    font-size: 0.8rem;
}
