/**
 * Style of form contact displayed on modal
 */

/* ---------- Overlay ---------- */
.form-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    background: rgba(0, 0, 0, .45);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.form-overlay.is-open {
    z-index: 9999999999999999999999;
    display: flex;
}
/* ---------- Modal ---------- */
.form-modal {
    position: relative;
    display: grid;
    grid-template-columns: 50% 50%;
    max-width: 860px;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    background: #fff;
    animation: formSlideIn .3s ease;
}
@keyframes formSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ---------- Close button ---------- */
.form-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    transition: background .2s ease;
}
.form-close:hover {
    background: var(--bg-soft);
}
/* ---------- Image ---------- */
.form-image {
    overflow: hidden;
}
.form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ---------- Content ---------- */
.form-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 48px 40px 36px;
    object-position: center 60%;
}
.form-title {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
}
/* ---------- Gender radio ---------- */
.form-gender {
    /* display: grid;
    grid-template-columns: 50% 50%; */
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
/* CF7 */
.wpcf7-form-control.wpcf7-radio {
    display: flex;
}
.form-gender label,
.gender-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    color: var(--text-dark);
    font-weight: 500;
    user-select: none;
    cursor: pointer;
    transition: background .15s ease;
}
.wpcf7-list-item,
.wpcf7 form .wpcf7-response-output {
    margin: 0;
}
.form-gender label:first-child,
.gender-option:first-child {
    border-right: 1px solid var(--border);
}
.gender-option:hover {
    background: var(--bg-soft);
}
.gender-option input[type="radio"] {
    display: none;
}
.gender-radio {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: border-color .15s ease;
}
.gender-option input[type="radio"]:checked + .gender-radio {
    border-color: var(--blue);
}
.gender-option input[type="radio"]:checked + .gender-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
}
/* ---------- Inputs ---------- */
.form-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 16px;
    transition: border-color .2s ease;
}
.form-input-wrap:focus-within {
    border-color: var(--blue);
}
.form-icon {
    flex-shrink: 0;
    color: #b0b5be;
}
.form-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 0;
    background: transparent;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: inherit;
}
.form-input-wrap input::placeholder {
    color: #b0b5be;
}
/* ---------- Submit button ---------- */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
    padding: 18px 28px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(24, 87, 214, 0.3);
    background: linear-gradient(0deg, #0A69DE 0%, #0346A4 100%);
    color: #fff;
    font-family: inherit;
    font-size: min(max(1rem, 4vw), 1.2rem);
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 87, 214, 0.35);
}
/* ---------- Security notice ---------- */
.form-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    color: #a0a5ae;
    font-size: .85rem;
}
/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .form-modal {
        grid-template-columns: 100%;
        max-height: 95vh;
        overflow-y: auto;
    }
    .form-image {
        max-height: 200px;
    }
    .form-content {
        padding: 32px 24px 28px;
    }
}
@media (max-width: 480px) {
    .form-overlay {
        padding: 12px;
    }
    .form-content {
        padding: 28px 18px 24px;
    }
    .form-title {
        font-size: 1.2rem;
    }
}