/* ==========================================================
   Contact Form 7 – full style override
   High-specificity selectors to beat any CF7 defaults
   ========================================================== */

/* ── Wrapper ─────────────────────────────────────────────── */
.hc-contact__form-wrap .wpcf7 { width: 100%; }

/* Screen-reader-only div — visually hidden, still accessible */
.hc-contact__form-wrap .wpcf7 .screen-reader-response {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Honeypot hidden fields container */
.hc-contact__form-wrap .wpcf7 .hidden-fields-container {
    display: none !important;
}

/* Submit wrapper div */
.hc-contact__form-wrap .hc-cf7-submit {
    margin-top: 0.5rem !important;
    display: block !important;
    position: relative !important;
}

/* Arrow icon inside submit button */
.hc-contact__form-wrap .hc-cf7-submit .hc-btn-arrow {
    display: inline-flex !important;
    align-items: center !important;
    width: 1rem !important;
    height: 1rem !important;
    margin-left: 0.5rem !important;
    vertical-align: middle !important;
    transition: transform 0.3s !important;
    flex-shrink: 0 !important;
}
.hc-contact__form-wrap .wpcf7 input[type="submit"]:hover ~ .hc-btn-arrow,
.hc-contact__form-wrap .hc-cf7-submit:hover .hc-btn-arrow {
    transform: translateX(4px) !important;
}

/* Strip CF7's default paragraph spacing */
.hc-contact__form-wrap .wpcf7 form,
.hc-contact__form-wrap .wpcf7 form p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide all bare <p> tags CF7 generates (submit is in a div, not a p) */
.hc-contact__form-wrap .wpcf7 form > p {
    display: none !important;
}

/* Response output — hidden until CF7 adds a message class */
.hc-contact__form-wrap .wpcf7 .wpcf7-response-output {
    display: none !important;
}
.hc-contact__form-wrap .wpcf7 .wpcf7-response-output:not(:empty) {
    display: block !important;
}

.hc-contact__form-wrap .wpcf7 form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

/* Each <p> CF7 wraps around a field becomes a field block */
.hc-contact__form-wrap .wpcf7 form > p {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

/* ── Labels ──────────────────────────────────────────────── */
.hc-contact__form-wrap .wpcf7 label {
    display: block !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: oklch(0.30 0.02 60) !important;
    margin-bottom: 0 !important;
}

/* ── Inputs & Textarea ───────────────────────────────────── */
/* Hide honeypot / hidden / quiz / spam utility fields */
.hc-contact__form-wrap .wpcf7 input[type="hidden"],
.hc-contact__form-wrap .wpcf7 .wpcf7-hidden,
.hc-contact__form-wrap .wpcf7 .wpcf7-quiz,
.hc-contact__form-wrap .wpcf7 .wpcf7-captchar,
.hc-contact__form-wrap .wpcf7 [style*="display:none"],
.hc-contact__form-wrap .wpcf7 [style*="display: none"],
.hc-contact__form-wrap .wpcf7 form > p:last-child:not(:has([type="submit"])) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hc-contact__form-wrap .wpcf7 input[type="text"],
.hc-contact__form-wrap .wpcf7 input[type="email"],
.hc-contact__form-wrap .wpcf7 input[type="tel"],
.hc-contact__form-wrap .wpcf7 input[type="url"],
.hc-contact__form-wrap .wpcf7 input[type="number"],
.hc-contact__form-wrap .wpcf7 input[type="search"],
.hc-contact__form-wrap .wpcf7 input[type="date"],
.hc-contact__form-wrap .wpcf7 select,
.hc-contact__form-wrap .wpcf7 textarea {
    display: block !important;
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    background-color: rgba(255,255,255,0.75) !important;
    color: oklch(0.30 0.02 60) !important;
    font-size: 1rem !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    outline: none !important;
    box-shadow: none !important;
    resize: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    margin: 0 !important;
}

.hc-contact__form-wrap .wpcf7 input[type="text"]::placeholder,
.hc-contact__form-wrap .wpcf7 input[type="email"]::placeholder,
.hc-contact__form-wrap .wpcf7 input[type="tel"]::placeholder,
.hc-contact__form-wrap .wpcf7 textarea::placeholder {
    color: rgba(80,70,60,0.45) !important;
}

.hc-contact__form-wrap .wpcf7 input[type="text"]:focus,
.hc-contact__form-wrap .wpcf7 input[type="email"]:focus,
.hc-contact__form-wrap .wpcf7 input[type="tel"]:focus,
.hc-contact__form-wrap .wpcf7 textarea:focus,
.hc-contact__form-wrap .wpcf7 select:focus {
    border-color: oklch(0.55 0.08 145) !important;
    box-shadow: 0 0 0 3px rgba(60,140,80,0.15) !important;
}

.hc-contact__form-wrap .wpcf7 textarea {
    min-height: 8rem !important;
}

/* span wrapper CF7 puts around inputs */
.hc-contact__form-wrap .wpcf7 .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

/* ── Submit button ───────────────────────────────────────── */
.hc-contact__form-wrap .hc-cf7-submit {
    display: block !important;
    margin-top: 0.5rem !important;
}

/* Hide the SVG we put in the template — we use CSS ::after instead */
.hc-contact__form-wrap .hc-cf7-submit .hc-btn-arrow {
    display: none !important;
}

.hc-contact__form-wrap .wpcf7 input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem 2.5rem !important;
    border-radius: 9999px !important;
    border: none !important;
    background-color: oklch(0.55 0.08 145) !important;
    color: oklch(0.99 0.003 90) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    cursor: pointer !important;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s !important;
    box-shadow: 0 8px 24px rgba(60,140,80,0.28) !important;
    width: auto !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    /* Arrow via text — works inside input */
    letter-spacing: 0 !important;
}

/* Append arrow using the wrapper ::after */
.hc-contact__form-wrap .hc-cf7-submit {
    position: relative !important;
    display: inline-block !important;
}
.hc-contact__form-wrap .hc-cf7-submit::after {
    content: '\2192' !important; /* → */
    position: absolute !important;
    right: 1.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: oklch(0.99 0.003 90) !important;
    font-size: 1rem !important;
    pointer-events: none !important;
    transition: transform 0.3s !important;
}
.hc-contact__form-wrap .hc-cf7-submit:hover::after {
    transform: translateY(-50%) translateX(4px) !important;
}
.hc-contact__form-wrap .hc-cf7-submit input[type="submit"] {
    padding-right: 3rem !important;
}

.hc-contact__form-wrap .wpcf7 input[type="submit"]:hover {
    background-color: oklch(0.48 0.08 145) !important;
    box-shadow: 0 12px 32px rgba(60,140,80,0.38) !important;
    transform: scale(1.02) !important;
}

/* ── Two-column row ─────────────────────────────────────── */
.hc-contact__form-wrap .hc-cf7-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.hc-contact__form-wrap .hc-cf7-field label span {
    font-weight: 400 !important;
    color: oklch(0.50 0.02 60) !important;
}

.hc-contact__form-wrap .hc-cf7-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
}

@media (min-width: 640px) {
    .hc-contact__form-wrap .hc-cf7-row {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ── Spinner (hide) ──────────────────────────────────────── */
.hc-contact__form-wrap .wpcf7 .wpcf7-spinner { display: none !important; }

/* ── Validation tips ─────────────────────────────────────── */
.hc-contact__form-wrap .wpcf7 .wpcf7-not-valid-tip {
    display: block !important;
    font-size: 0.8125rem !important;
    color: #c0392b !important;
    margin-top: 0.35rem !important;
}

.hc-contact__form-wrap .wpcf7 .wpcf7-not-valid {
    border-color: rgba(192,57,43,0.5) !important;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.12) !important;
}

/* ── Response output — shown above the submit button ─────── */
.hc-contact__form-wrap .wpcf7 form {
    display: flex !important;
    flex-direction: column !important;
}

/* Response output — pinned to top of form */
.hc-contact__form-wrap .wpcf7 .wpcf7-response-output {
    order: -1 !important;
    margin: 0 0 1rem !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 0.875rem !important;
    font-size: 0.9375rem !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.hc-contact__form-wrap .wpcf7 .wpcf7-mail-sent-ok {
    background-color: rgba(60,140,80,0.08) !important;
    border-color: rgba(60,140,80,0.3) !important;
    color: oklch(0.45 0.08 145) !important;
}

.hc-contact__form-wrap .wpcf7 .wpcf7-mail-sent-ng,
.hc-contact__form-wrap .wpcf7 .wpcf7-aborted,
.hc-contact__form-wrap .wpcf7 .wpcf7-validation-errors,
.hc-contact__form-wrap .wpcf7 .wpcf7-acceptance-missing {
    background-color: rgba(192,57,43,0.06) !important;
    border-color: rgba(192,57,43,0.28) !important;
    color: #c0392b !important;
}
