/* "Bize Yazın" iletişim modalı.
   Ayrı dosya: tema CSS'i (style.css / responsive.css) tema güncellemesinde değişebiliyor. */

.contact_modal .modal-dialog {
    max-width: 640px;
}

.contact_modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.contact_modal .modal-header {
    background: #2e9e4f;
    color: #fff;
    border-bottom: 0;
    padding: 18px 24px;
}

.contact_modal .modal-title {
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}

.contact_modal .modal-header .close {
    color: #fff;
    opacity: .85;
    text-shadow: none;
    font-size: 26px;
    line-height: 1;
}

.contact_modal .modal-header .close:hover {
    opacity: 1;
}

.contact_modal .modal-body {
    padding: 22px 24px 24px;
}

.contact_modal .contact_intro {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.contact_modal label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.contact_modal .req {
    color: #e11d48;
}

.contact_modal .form-control {
    border: 1px solid #d9dee5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    height: auto;
    color: #111827;
    background: #fff;
}

.contact_modal .form-control:focus {
    border-color: #2e9e4f;
    box-shadow: 0 0 0 3px rgba(46, 158, 79, .15);
}

.contact_modal textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.contact_modal .char_count {
    display: block;
    text-align: right;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 4px;
}

.contact_modal .kvkk_check {
    margin-top: 4px;
    padding-left: 24px;
}

.contact_modal .kvkk_check .form-check-label {
    font-weight: 400;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.contact_modal .kvkk_check a {
    color: #2e9e4f;
    text-decoration: underline;
}

/* Bot tuzağı — ekran okuyucudan da uzak tutmak için görsel olarak tamamen dışarıda. */
.contact_modal .hp_field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact_modal .contact_alert {
    display: none;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.contact_modal .contact_alert.ok {
    background: #e8f6ec;
    color: #1c6b36;
    border: 1px solid #b9e2c6;
}

.contact_modal .contact_alert.err {
    background: #fdecef;
    color: #9f1239;
    border: 1px solid #f6c6d0;
}

.contact_modal .recaptcha_box {
    margin-top: 6px;
}

/* Widget 304px sabit genişlikte; dar ekranda taşmasın diye ölçekleniyor. */
@media (max-width: 400px) {
    .contact_modal .recaptcha_box .g-recaptcha {
        transform: scale(.86);
        transform-origin: 0 0;
    }
}

.contact_modal .modal_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.contact_modal .modal_actions .btn {
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
}

.contact_modal .modal_actions .cancel_btn {
    background: #f1f3f5;
    color: #4b5563;
    border: 1px solid #e2e6ea;
}

.contact_modal .modal_actions .cancel_btn:hover {
    background: #e7ebef;
}

.contact_modal #contactSubmit.sending {
    opacity: .65;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    .contact_modal .modal-body {
        padding: 18px 16px 20px;
    }

    .contact_modal .modal_actions {
        flex-direction: column-reverse;
    }

    .contact_modal .modal_actions .btn {
        width: 100%;
    }
}
