/* ══════════════════════════════════════════════════════════
   Contact Page Styles — Contact Form 7 Integration
   ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.contact-hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(165deg, #f0faf7 0%, #ffffff 50%, #f7fdf9 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 79, 70, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.contact-hero__inner {
    max-width: 680px;
    margin: 0 auto;
}

.contact-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1F4F46;
    background-color: rgba(31, 79, 70, 0.06);
    border: 1px solid rgba(31, 79, 70, 0.1);
    border-radius: 50px;
    margin-bottom: 24px;
}

.contact-hero__badge svg {
    color: #1F4F46;
}

.contact-hero__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.contact-hero__title em {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    color: #1F4F46;
}

.contact-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #666;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Form Section Layout ──────────────────────────────────── */
.contact-form-section {
    padding: 80px 24px 120px;
    background: #fff;
}

.contact-form-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

/* ── Form Wrapper ─────────────────────────────────────────── */
.contact-form-wrap {
    background: #fff;
    border: 1px solid rgba(31, 79, 70, 0.08);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 8px 40px rgba(31, 79, 70, 0.04);
}

/* ══════════════════════════════════════════════════════════
   Contact Form 7 — Override Styles
   ══════════════════════════════════════════════════════════ */

/* ── CF7 Row/Col Grid Layout ──────────────────────────────── */
.contact-form-wrap .cf7-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.contact-form-wrap .cf7-col {
    min-width: 0;
}

/* ── CF7 Labels ───────────────────────────────────────────── */
.contact-form-wrap .wpcf7-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

/* ── CF7 Inputs & Textarea ────────────────────────────────── */
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form input[type="url"],
.contact-form-wrap .wpcf7-form input[type="number"],
.contact-form-wrap .wpcf7-form textarea,
.contact-form-wrap .wpcf7-form select {
    display: block;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    padding: 14px 18px;
    margin-top: 8px;
    border: 1px solid rgba(31, 79, 70, 0.12);
    border-radius: 12px;
    background: #fafcfb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.contact-form-wrap .wpcf7-form input::placeholder,
.contact-form-wrap .wpcf7-form textarea::placeholder {
    color: #aaa;
    font-weight: 400;
}

.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form textarea:focus,
.contact-form-wrap .wpcf7-form select:focus {
    border-color: #1F4F46;
    box-shadow: 0 0 0 3px rgba(31, 79, 70, 0.06);
    background: #fff;
}

.contact-form-wrap .wpcf7-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form-wrap .wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* ── CF7 Submit Button (matches theme pattern) ────────────── */
.contact-form-wrap .wpcf7-form input[type="submit"],
.contact-form-wrap .wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    line-height: 1;
    overflow: hidden;
    position: relative;
    background-color: #1F4F46;
    color: #fff;
    border: 1.5px solid #1F4F46;
    transition: color 0.35s ease, border-color 0.35s ease, background-color 0.45s ease;
    white-space: nowrap;
    z-index: 1;
    margin-top: 8px;
}

.contact-form-wrap .wpcf7-form input[type="submit"]:hover,
.contact-form-wrap .wpcf7-form .wpcf7-submit:hover {
    background-color: #2F7D6B;
    border-color: #2F7D6B;
    color: #fff;
}

.contact-form-wrap .wpcf7-form input[type="submit"]:active,
.contact-form-wrap .wpcf7-form .wpcf7-submit:active {
    transform: scale(0.97);
}

.contact-form-wrap .wpcf7-form .wpcf7-spinner {
    margin-left: 12px;
}

/* ── CF7 Validation Errors ────────────────────────────────── */
.contact-form-wrap .wpcf7-not-valid-tip {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #e53e3e;
    margin-top: 6px;
    display: block;
}

.contact-form-wrap .wpcf7-form input.wpcf7-not-valid,
.contact-form-wrap .wpcf7-form textarea.wpcf7-not-valid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.06);
}

/* ── CF7 Response Messages ────────────────────────────────── */
.contact-form-wrap .wpcf7-response-output {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 14px 20px;
    border-radius: 12px;
    margin: 20px 0 0 !important;
    border-width: 1px !important;
}

.contact-form-wrap .wpcf7-form.sent .wpcf7-response-output {
    background: rgba(31, 79, 70, 0.06);
    border-color: rgba(31, 79, 70, 0.15) !important;
    color: #1F4F46;
}

.contact-form-wrap .wpcf7-form.failed .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.aborted .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.invalid .wpcf7-response-output {
    background: rgba(229, 62, 62, 0.06);
    border-color: rgba(229, 62, 62, 0.15) !important;
    color: #c53030;
}

/* ── Info Sidebar ─────────────────────────────────────────── */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: #fafcfb;
    border: 1px solid rgba(31, 79, 70, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-info-card:hover {
    border-color: rgba(31, 79, 70, 0.12);
    box-shadow: 0 4px 20px rgba(31, 79, 70, 0.05);
}

.contact-info-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 79, 70, 0.06);
    border-radius: 12px;
    margin-bottom: 16px;
    color: #1F4F46;
}

.contact-info-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.contact-info-card__link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #1F4F46;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-info-card__link:hover {
    color: #276B5C;
    text-decoration: underline;
}

.contact-info-card__text {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .contact-form-section__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-info-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        padding: 120px 20px 60px;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    .contact-form-wrap .cf7-row {
        grid-template-columns: 1fr;
    }

    .contact-info-sidebar {
        flex-direction: column;
    }

    .contact-info-card {
        flex: 1 1 100%;
    }
}
