/* ── Base Wrapper ─────────────────────────────────────────────── */

.get-in-touch-wrapper {
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    color: #111827;
    background: #fdfdfd;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

.contact-card {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

/* ── Header ───────────────────────────────────────────────────── */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    transition: all 0.2s;
}

.back-home:hover {
    color: #dc2626;
    transform: translateX(-4px);
}

.contact-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.contact-title-wrap h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 48px;
    line-height: 1.5;
}

/* ── Robust Form Grid ─────────────────────────────────────────── */
.wpcf7-form {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* Force all children to full width by default */
.wpcf7-form>* {
    grid-column: 1 / -1;
    margin-bottom: 0 !important;
}

/* Hide auto-breaks */
.wpcf7-form br {
    display: none !important;
}

/* FORCE first 3 p tags into a single line */
.wpcf7-form>p:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
}

.wpcf7-form>p:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

.wpcf7-form>p:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
}

/* Move subsequent sections down */
.wpcf7-form>label.form-section-title {
    grid-row: 2;
    margin-top: 12px;
}

.wpcf7-form>div.checkbox-grid {
    grid-row: 3;
}

.wpcf7-form>p:nth-of-type(4) {
    grid-row: 4;
}

/* Message area */
.wpcf7-form>p:last-child {
    grid-row: 5;
}

/* Submit button */

/* Grid container inside the form if the user used the wrapper */
.form-grid-3 {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

.form-grid-3 p {
    grid-column: auto !important;
}

/* ── Inputs & Labels ──────────────────────────────────────────── */
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #111827;
    transition: all 0.2s;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 1px #dc2626;
}

/* ── Checkbox Section ─────────────────────────────────────────── */
.checkbox-grid {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.checkbox-grid .wpcf7-checkbox {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 40px !important;
}

.wpcf7-list-item {
    margin: 0 !important;
}

.wpcf7-list-item-label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ── Message Area ─────────────────────────────────────────────── */
textarea {
    min-height: 160px;
    background: #fafafa;
}

/* ── Submit Button ────────────────────────────────────────────── */
.wpcf7-submit {
    width: 100%;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.wpcf7-submit:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 850px) {
    .wpcf7-form {
        display: flex !important;
        flex-direction: column !important;
    }

    .form-grid-3 {
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (max-width: 600px) {
    .contact-card {
        padding: 40px 24px;
    }

    .checkbox-grid .wpcf7-checkbox {
        grid-template-columns: 1fr !important;
    }
}