/* ============================================
 * Contact Page Styles
 * Only loaded on the Contact page
 * ============================================ */

/* Hero image height */
@media (min-width: 1024px) {
    .design-hero-img {
        height: 630px;
    }
}

/* Content section — 75% width on desktop + background image */
@media (min-width: 1024px) {
    .contact-content-wrap {
        width: 75%;
    }
}
.contact-content-wrap {
    background: transparent;
}

/* Content section background */
.contact-content-bg {
    background: #fff url('../images/contact_bg.png') no-repeat center / 87%;
}

/* ============================================
 * Section Typography (aligned with design page / homepage)
 * ============================================ */
.contact-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.775rem;
    color: #1a1a1a;
    line-height: 1.2;
}
@media (min-width: 1024px) {
    .contact-heading {
        font-size: 3rem;
        line-height: 1.15;
    }
}
.contact-body {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.625;
}

/* ============================================
 * Contact Info — Icons & Links
 * ============================================ */
.contact-info-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #b71c1c;
    margin-top: 0.125rem;
    flex-shrink: 0;
}
.contact-info-text {
    font-size: 0.9375rem;
    color: #1a1a1a;
    line-height: 1.6;
    transition: color 0.2s ease;
}
@media (min-width: 1024px) {
    .contact-info-text {
        font-size: 1.25rem;
    }
}
.contact-info-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-info-link:hover {
    color: #b71c1c;
}

/* ============================================
 * QR Code Placeholder
 * ============================================ */
.contact-qr-placeholder {
    width: 8rem;
    height: 8rem;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-qr-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #ccc;
}
.contact-qr-row {
    margin-top: 4rem;
    justify-content: flex-start;
    padding-left: 2rem;
}
.contact-qr-label {
    font-size: 0.875rem;
    color: #666;
}
@media (max-width: 767px) {
    .contact-qr-row {
        margin-top: 2rem;
    }
}

/* ============================================
 * Form Card
 * ============================================ */
.contact-form-card {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 6px;
}
@media (min-width: 1024px) {
    .contact-form-card { padding: 2rem; }
}
.contact-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.contact-form-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
    .contact-form-desc {
        font-size: 1.15rem;
    }
}

/* ============================================
 * CF7 Form Overrides
 * ============================================ */
.contact-form-card .wpcf7-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}
.contact-form-card .wpcf7-form > p {
    margin: 0 0 1rem !important;
    padding: 0 !important;
}
.contact-form-card .wpcf7-form > p br {
    display: none !important;
}
/* Two-column row */
.contact-form-card .wpcf7-form .form-row > p {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
}
.contact-form-card .wpcf7-form label {
    display: block !important;
    width: 100% !important;
    font-size: 1rem !important;
    color: #666 !important;
    font-weight: 400 !important;
    margin-bottom: 0.375rem !important;
}
.contact-form-card .wpcf7-form .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}
.contact-form-card .wpcf7-form input[type="text"],
.contact-form-card .wpcf7-form input[type="email"],
.contact-form-card .wpcf7-form input[type="tel"],
.contact-form-card .wpcf7-form textarea {
    width: 100% !important;
    padding: 0 0 0.625rem !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    color: #1a1a1a !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease;
}
.contact-form-card .wpcf7-form input::placeholder,
.contact-form-card .wpcf7-form textarea::placeholder {
    color: #9ca3af !important;
}
.contact-form-card .wpcf7-form input:focus,
.contact-form-card .wpcf7-form textarea:focus {
    outline: none !important;
    border-bottom-color: #b91c1c !important;
}
/* Hide captcha row */
.contact-form-card .wpcf7-form label:has([name*="captcha"]) {
    display: none !important;
}
/* Textarea — compact height */
.contact-form-card .wpcf7-form textarea {
    resize: none !important;
    min-height: 2rem !important;
    height: 2rem !important;
    overflow: hidden !important;
    line-height: 1.4 !important;
}
/* Submit button */
.contact-form-card .wpcf7-form .wpcf7-submit {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 2rem !important;
    font-size: 1.1rem !important;
    font-family: inherit !important;
    letter-spacing: 0.05em !important;
    background: #b91c1c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    margin-top: 0.5rem !important;
}
.contact-form-card .wpcf7-form .wpcf7-submit:hover {
    background: #991b1b !important;
}
/* Validation */
.contact-form-card .wpcf7-not-valid-tip {
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    margin-top: 0.25rem !important;
}
.contact-form-card .wpcf7-response-output {
    color: #16a34a !important;
    border-color: #16a34a !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
}

/* ============================================
 * Map Section
 * ============================================ */
.contact-map-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    background: #f5f5f5;
}
@media (min-width: 1024px) {
    .contact-map-wrap { aspect-ratio: 21 / 7; }
}
.contact-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
