/* ============================================================
   Contact Form 7 — markup glue.

   The static forms were hand-written <input>/<textarea> elements.
   CF7 wraps every tag in <p>, adds .wpcf7-form-control-wrap spans and
   a .wpcf7-submit input, so this file maps that markup onto the exact
   same visual result in both places a form is rendered:

     1. .contact-form        — contact page (light card)
     2. .contact-layout .form-wrap — home page CTA block (dark card)
   ============================================================ */

/* ---- Reset the extra wrappers ---- */
.wpcf7,
.wpcf7 form {
    margin: 0;
}

.wpcf7 form p {
    margin: 0;
    padding: 0;
}

.wpcf7 form br {
    display: none;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* wpautop puts both pills of a .form-row into one <p>; dissolve the wrapper so
   they become the two grid cells the static markup produced. */
.contact-form .form-row p {
    display: contents;
}

.contact-form .form-row br {
    display: none;
}

.wpcf7-not-valid-tip {
    display: block;
    margin: 6px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.wpcf7-spinner {
    margin: 0 0 0 10px;
}

.wpcf7 form .wpcf7-list-item {
    margin: 0;
}

/* ---- 1. Contact page (light) ---- */
.contact-form .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    border: 1px solid #e5e7e5;
    background: var(--white);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 167, 58, 0.12);
}

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

.contact-form input.wpcf7-submit {
    width: 100%;
    padding: 15px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 0;
    transition: background 0.3s, transform 0.3s;
}

.contact-form input.wpcf7-submit:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.contact-form .wpcf7-not-valid-tip {
    color: #c0392b;
    margin-top: -8px;
    margin-bottom: 10px;
}

.contact-form .wpcf7-response-output {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.contact-form form.sent .wpcf7-response-output,
.contact-form .wpcf7-form.sent .wpcf7-response-output {
    background: rgba(0, 167, 58, 0.08);
    border-color: rgba(0, 167, 58, 0.35);
    color: var(--green-dark);
}

/* ---- 2. Home CTA block (dark card) ---- */
.contact-layout .form-wrap .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    color: var(--white);
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 18px;
    transition: border-color 0.3s;
}

.contact-layout .form-wrap .wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: var(--green);
}

.contact-layout .form-wrap ::placeholder {
    color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

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

.contact-layout .form-wrap input.wpcf7-submit {
    width: 100%;
    padding: 16px 40px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 60px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-bottom: 0;
    transition: background 0.4s, transform 0.35s, box-shadow 0.4s;
}

.contact-layout .form-wrap input.wpcf7-submit:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 48px var(--green-glow);
}

.contact-layout .form-wrap .wpcf7-not-valid-tip {
    color: #ff9c8a;
    margin-top: -10px;
    margin-bottom: 12px;
}

.contact-layout .form-wrap .wpcf7-response-output {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.contact-layout .form-wrap .wpcf7-form.sent .wpcf7-response-output {
    background: rgba(0, 167, 58, 0.14);
    border-color: rgba(0, 167, 58, 0.45);
    color: #b6f2c9;
}
