/* ---------- Page Wrapper ---------- */
.form-page-wrapper {
    min-height: 100vh;
    display: flex;
    /*align-items: center;*/
    /*justify-content: center;*/
}

/* ---------- Form Card ---------- */
.custom-form-card {
    background-color: #f8f9fa;
    border: 2px solid #000080;
    border-radius: 20px;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 500px;
    height: max-content;
    box-shadow: 0 10px 30px rgba(0, 0, 128, 0.05);
}
.e-child:first-of-type {
    justify-content: center;
}

/* ---------- Title ---------- */
.form-title {
    color: #000080;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 20px;
    line-height: 105%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Inputs & Textarea ---------- */
.form-input,
.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance) {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #333;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #adb5bd;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-input:focus,
.wpcf7-form-control:focus {
    background-color: #fff;
    border-color: #000080;
    box-shadow: 0 0 0 4px rgba(0, 0, 128, 0.1);
}

/* ---------- Phone Input ---------- */

.phone-field {
    width: 100%;
}

/* =========================================
   CHECKBOXES — FIXED & VISIBLE
========================================= */

.checkboxes-group {
    margin-bottom: 1.5rem;
}

.wpcf7-list-item-label {
    font-size: 16px;
    font-weight: 400;
}

/* Grid */
.wpcf7-checkbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Item */
.wpcf7-list-item {
    margin: 0;
}

/* Label */
.wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* Actual checkbox */
.wpcf7-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #010088;
}

/* Focus */
.wpcf7-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #010088;
    outline-offset: 3px;
}

/* ---------- Button ---------- */
.cf7-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    /*margin-top: 1.5rem;*/
}

.cf7-send-btn,
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #010088;
    border-radius: 50px;
    padding: 14px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(1, 0, 136, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    width: 100%;
}


/* Arrow */
.cf7-btn-arrow {
    width: 44px;
    height: 44px;
    position: absolute;
    left: 150px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: none;
}

/* ---------- CF7 Messages ---------- */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background-color: #f0fff4;
    border: 1px solid #ccffcc;
    color: #006600;
}

.wpcf7-validation-errors {
    background-color: #fff5f5;
    border: 1px solid #ffcccc;
    color: #cc0000;
}

.cf7-form-group p{
    margin: 0 !important;
    margin-bottom: 0.5rem !important;
}

/* ---------- Responsive ---------- */
/* ==============================
   Mobile: Stack checkboxes
============================== */
@media (max-width: 576px) {
    .wpcf7-checkbox {
        grid-template-columns: 1fr;
    }
     .wpcf7-list-item label {
        padding: 6px 0;
    }
}


@media (max-width: 480px) {
    .custom-form-card {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .cf7-send-btn {
        padding: 14px 50px;
    }

    .cf7-btn-arrow {
        left: 120px;
    }
}
