/* ==========================================
   BAPSANG — Contact Form 7 styling (Ember & Steel)
========================================== */
.wpcf7 {
    --bf-ember: #b66d33;
    --bf-brass: #c4a265;
    --bf-charcoal: #1a1714;
    --bf-graphite: #2a2520;
    --bf-cream: #faf7f2;
    --bf-muted: #5c5650;
    --bf-line: rgba(26, 23, 20, 0.14);

    max-width: 820px;
    margin: 56px auto;
    padding: 44px 44px 40px;
    background: var(--bf-cream);
    border: 1px solid var(--bf-line);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(26, 23, 20, 0.08);
    font-family: 'DM Sans', sans-serif;
    color: var(--bf-charcoal);
    box-sizing: border-box;
}

.wpcf7 * { box-sizing: border-box; }

/* Grid + fields */
.wpcf7 .bap-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    margin: 0;
}

.wpcf7 .bap-field { margin: 0 0 18px; }
.wpcf7 .bap-form-grid .bap-field { margin: 0; }
.wpcf7 .bap-field--full { margin: 18px 0; }

.wpcf7 .bap-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bf-graphite);
    line-height: 1.5;
}

/* Inputs */
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--bf-charcoal);
    background: #ffffff;
    border: 1px solid var(--bf-line);
    border-radius: 10px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7 select.wpcf7-form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23b66d33' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: var(--bf-ember);
    box-shadow: 0 0 0 3px rgba(182, 109, 51, 0.14);
}

.wpcf7 .wpcf7-form-control::placeholder { color: #a8a29b; }

/* Submit button */
.wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 15px 38px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bf-charcoal);
    background: linear-gradient(135deg, var(--bf-ember), var(--bf-brass));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 12px 30px rgba(182, 109, 51, 0.28);
}

.wpcf7 .wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(182, 109, 51, 0.4);
}

.wpcf7 .wpcf7-submit:active { transform: translateY(-1px); }

/* Newsletter inline variant */
.wpcf7 .bap-field--inline {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin: 0;
}
.wpcf7 .bap-field--inline .wpcf7-form-control-wrap { flex: 1; }
.wpcf7 .bap-field--inline .wpcf7-form-control:not(.wpcf7-submit) { margin-top: 0; height: 100%; }
.wpcf7 .bap-field--inline .wpcf7-submit { margin-top: 0; white-space: nowrap; }

/* Spinner */
.wpcf7 .wpcf7-spinner { margin: 0 0 0 14px; }

/* Validation + response messages */
.wpcf7 .wpcf7-not-valid {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
}
.wpcf7 .wpcf7-not-valid-tip {
    color: #c0392b;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 6px;
}
.wpcf7 .wpcf7-response-output {
    margin: 24px 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 10px;
    border-width: 1px !important;
    font-size: 14px;
    line-height: 1.6;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #c0392b !important;
    background: rgba(192, 57, 43, 0.06);
    color: #8e2a20;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--bf-ember) !important;
    background: rgba(182, 109, 51, 0.08);
    color: var(--bf-graphite);
}

/* Responsive */
@media (max-width: 640px) {
    .wpcf7 {
        padding: 28px 22px 26px;
        margin: 36px auto;
        border-radius: 16px;
    }
    .wpcf7 .bap-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .wpcf7 .bap-field--inline {
        flex-direction: column;
    }
    .wpcf7 .wpcf7-submit { width: 100%; }
}

/* ==========================================
   BAPSANG — SEO/GEO content block
========================================== */
.bap-seo { background: #faf7f2; }
.bap-seo__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 96px 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}
.bap-seo__eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #b66d33;
    margin: 0 0 16px;
}
.bap-seo__body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: #1a1714;
    line-height: 1.2;
    margin: 0 0 20px;
}
.bap-seo__body h2 em { color: #b66d33; font-style: italic; }
.bap-seo__body p {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #5c5650;
    margin: 0 0 16px;
}
.bap-seo__body p:last-child { margin-bottom: 0; }
.bap-seo__body a {
    color: #a85f28;
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 162, 101, 0.45);
    transition: color 0.2s ease;
}
.bap-seo__body a:hover { color: #b66d33; }
.bap-seo__media { margin: 0; }
.bap-seo__media img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    box-shadow: 0 24px 60px rgba(26, 23, 20, 0.12);
}
@media (max-width: 860px) {
    .bap-seo__inner { grid-template-columns: 1fr; gap: 32px; padding: 64px 22px; }
    .bap-seo__media { order: -1; }
    .bap-seo__media img { max-height: 320px; }
}
