/* ============================================================
   WASAReC  — CF7 Form Styles
   Scope: .wpcf7-get-involved  (Get Involved / Donation section)
   ============================================================ */

/* ── Reset CF7 table/span layout ── */
.wpcf7-get-involved .wpcf7 {
    margin: 0;
    padding: 0;
}

.wpcf7-get-involved form.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* CF7 wraps each field in a <p> by default */
.wpcf7-get-involved .wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.wpcf7-get-involved .wpcf7-form br {
    display: none;
}

/* ── Labels ── */
.wpcf7-get-involved label,
.wpcf7-get-involved .wpcf7-form-control-wrap::before {
    display: block;
    font-size: 0.625rem;           /* 10px */
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #737780;                /* --outline */
    margin-bottom: 0.25rem;
    font-family: 'Montserrat', sans-serif;
}

/* ── Text / Email / Tel / Number inputs ── */
.wpcf7-get-involved input[type="text"],
.wpcf7-get-involved input[type="email"],
.wpcf7-get-involved input[type="tel"],
.wpcf7-get-involved input[type="number"],
.wpcf7-get-involved input[type="url"],
.wpcf7-get-involved textarea {
    width: 100%;
    background: #edeeef;           /* surface-container */
    border: 1.5px solid transparent;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    color: #0b0e54;                /* primary */
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-get-involved input[type="text"]::placeholder,
.wpcf7-get-involved input[type="email"]::placeholder,
.wpcf7-get-involved input[type="tel"]::placeholder,
.wpcf7-get-involved input[type="number"]::placeholder,
.wpcf7-get-involved textarea::placeholder {
    color: rgba(115,119,128,0.45);
}

.wpcf7-get-involved input[type="text"]:hover,
.wpcf7-get-involved input[type="email"]:hover,
.wpcf7-get-involved input[type="tel"]:hover,
.wpcf7-get-involved input[type="number"]:hover,
.wpcf7-get-involved textarea:hover {
    border-color: #c3c6d1;         /* outline-variant */
}

.wpcf7-get-involved input[type="text"]:focus,
.wpcf7-get-involved input[type="email"]:focus,
.wpcf7-get-involved input[type="tel"]:focus,
.wpcf7-get-involved input[type="number"]:focus,
.wpcf7-get-involved textarea:focus {
    border-color: #0096e1;         /* secondary */
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 150, 225, 0.08);
}

.wpcf7-get-involved textarea {
    resize: vertical;
    min-height: 110px;
}

/* ── Select ── */
.wpcf7-get-involved select {
    width: 100%;
    background: #edeeef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737780' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 1rem center;
    border: 1.5px solid transparent;
    border-radius: 0.75rem;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    color: #0b0e54;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.wpcf7-get-involved select:focus {
    border-color: #0096e1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 150, 225, 0.08);
}

/* ── Radio & Checkbox groups ── */
.wpcf7-get-involved .wpcf7-radio,
.wpcf7-get-involved .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.wpcf7-get-involved .wpcf7-radio .wpcf7-list-item,
.wpcf7-get-involved .wpcf7-checkbox .wpcf7-list-item {
    margin: 0;
}

.wpcf7-get-involved .wpcf7-radio .wpcf7-list-item label,
.wpcf7-get-involved .wpcf7-checkbox .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid #c3c6d1;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #43474f;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.05em;
    text-transform: none;
}

.wpcf7-get-involved .wpcf7-radio input[type="radio"],
.wpcf7-get-involved .wpcf7-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #0096e1;
    cursor: pointer;
}

.wpcf7-get-involved .wpcf7-radio .wpcf7-list-item label:hover,
.wpcf7-get-involved .wpcf7-checkbox .wpcf7-list-item label:hover {
    border-color: #0096e1;
    color: #0096e1;
    background: rgba(0,150,225,0.04);
}

/* ── Amount preset buttons (for custom CF7 markup using free_text) ── */
.gi-amount-btn,
.wpcf7-get-involved .amount-btn {
    padding: 0.875rem 0.5rem;
    border: 2px solid #c3c6d1;
    border-radius: 0.75rem;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #43474f;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.gi-amount-btn:hover,
.wpcf7-get-involved .amount-btn:hover,
.gi-amount-btn.active,
.wpcf7-get-involved .amount-btn.active {
    border-color: #0096e1;
    color: #0096e1;
    background: rgba(0,150,225,0.05);
}

/* ── Submit button ── */
.wpcf7-get-involved input[type="submit"],
.wpcf7-get-involved button[type="submit"],
.gi-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0b0e54 0%, #0096e1 100%);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    margin-top: 0.5rem;
}

.wpcf7-get-involved input[type="submit"]:hover,
.wpcf7-get-involved button[type="submit"]:hover,
.gi-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.wpcf7-get-involved input[type="submit"]:active,
.wpcf7-get-involved button[type="submit"]:active,
.gi-submit-btn:active {
    transform: scale(0.98);
}

/* ── Validation error messages ── */
.wpcf7-get-involved .wpcf7-not-valid-tip {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #ba1a1a;
    margin-top: 0.25rem;
    font-family: 'Montserrat', sans-serif;
}

.wpcf7-get-involved input.wpcf7-not-valid,
.wpcf7-get-involved select.wpcf7-not-valid,
.wpcf7-get-involved textarea.wpcf7-not-valid {
    border-color: #ba1a1a !important;
    background: #fff8f8;
    box-shadow: 0 0 0 4px rgba(186, 26, 26, 0.07);
}

/* ── Response / status messages ── */
.wpcf7-get-involved .wpcf7-response-output {
    margin: 0.5rem 0 0;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: none !important;
}

.wpcf7-get-involved .wpcf7-mail-sent-ok {
    background: #e6f6ee;
    color: #1a6636;
}

.wpcf7-get-involved .wpcf7-mail-sent-ng,
.wpcf7-get-involved .wpcf7-aborted,
.wpcf7-get-involved .wpcf7-spam-blocked {
    background: #fff0f0;
    color: #ba1a1a;
}

.wpcf7-get-involved .wpcf7-validation-errors {
    background: #fff8ec;
    color: #7a4800;
}

/* ── Loading spinner on submit ── */
.wpcf7-get-involved .wpcf7-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wpcf7-spin 0.6s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes wpcf7-spin {
    to { transform: rotate(360deg); }
}

/* ── Fallback static form helpers ── */
.gi-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #737780;
    margin-bottom: 0.375rem;
    font-family: 'Montserrat', sans-serif;
}

.gi-input {
    width: 100%;
    background: #edeeef;
    border: 1.5px solid transparent;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    color: #0b0e54;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.gi-input:focus {
    border-color: #0096e1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0,150,225,0.08);
}
