/* =========================================================
 * Woo Winget Soru & Cevap
 * Profesyonel Frontend Tasarımı
 * Version: 1.4.0
 * ========================================================= */


/* =========================================================
 * SORU SOR BUTONU
 * ========================================================= */

.wqa-ask-button-wrapper {
    display: block;
    width: 100%;
    margin: 12px 0 18px;
}

.wqa-ask-button-wrapper .wqa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 18px;

    border: 1px solid #7b1e5e;
    border-radius: 6px;

    background: #7b1e5e;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.wqa-ask-button-wrapper .wqa-btn:hover {
    background: #68194f;
    border-color: #68194f;
    color: #ffffff;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);

    transform: translateY(-1px);
}

.wqa-ask-button-wrapper .wqa-btn:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(123, 30, 94, 0.15);
}

.wqa-ask-button-wrapper .wqa-btn:active {
    transform: translateY(0);
}

.wqa-ask-button-wrapper .dashicons {
    width: 18px;
    height: 18px;

    font-size: 18px;
    line-height: 18px;
}


/* =========================================================
 * MODAL OVERLAY
 *
 * ÖNEMLİ:
 * Modal varsayılan olarak display:none olmalıdır.
 * JS yalnızca .wqa-is-open sınıfı eklediğinde açılır.
 * ========================================================= */

.wqa-modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(20, 20, 20, 0.58);

    box-sizing: border-box;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}

/*
 * JS tarafından modal açıldığında kullanılır.
 */
.wqa-modal-overlay.wqa-is-open {
    display: flex;
}

/*
 * HTML hidden attribute'u varsa her durumda gizle.
 * Böylece CSS/JS çakışmalarında bile modal sayfa açılışında görünmez.
 */
.wqa-modal-overlay[hidden] {
    display: none !important;
}


/* =========================================================
 * MODAL KUTUSU
 * ========================================================= */

.wqa-modal-content {
    position: relative;

    width: 100%;
    max-width: 520px;

    max-height: calc(100vh - 48px);

    margin: auto;

    padding: 30px 30px 26px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.20),
        0 4px 16px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;

    overflow-y: auto;

    animation: wqa-modal-in 0.22s ease-out;
}


/* =========================================================
 * MODAL ANİMASYONU
 * ========================================================= */

@keyframes wqa-modal-in {

    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
 * KAPAT BUTONU
 * ========================================================= */

.wqa-modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f5f5f5;
    color: #555555;

    font-family: inherit;
    font-size: 25px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.wqa-modal-close:hover {
    background: #eeeeee;
    color: #222222;

    transform: rotate(3deg);
}

.wqa-modal-close:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(123, 30, 94, 0.15);
}


/* =========================================================
 * MODAL BAŞLIK
 * ========================================================= */

#wqa-modal-title {
    margin: 0;

    padding: 0 42px 20px 0;

    border-bottom: 1px solid #eeeeee;

    color: #222222;

    font-family: inherit;
    font-size: 21px;
    font-weight: 600;

    line-height: 1.35;
}


/* =========================================================
 * FORM
 * ========================================================= */

#wqa-form {
    margin-top: 22px;
}


/* =========================================================
 * FORM GRUPLARI
 * ========================================================= */

#wqa-form p {
    margin: 0 0 17px;
}


/* =========================================================
 * LABEL
 * ========================================================= */

#wqa-form label {
    display: block;

    margin-bottom: 7px;

    color: #333333;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    line-height: 1.4;
}


/* =========================================================
 * INPUT + TEXTAREA
 * ========================================================= */

#wqa-form input[type="text"],
#wqa-form input[type="email"],
#wqa-form textarea {

    display: block;

    width: 100%;

    margin: 0;

    padding: 11px 13px;

    border: 1px solid #d8d8d8;
    border-radius: 6px;

    background: #ffffff;
    color: #222222;

    font-family: inherit;
    font-size: 14px;

    line-height: 1.5;

    box-sizing: border-box;

    appearance: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* =========================================================
 * INPUT FOCUS
 * ========================================================= */

#wqa-form input[type="text"]:focus,
#wqa-form input[type="email"]:focus,
#wqa-form textarea:focus {

    outline: none;

    border-color: #7b1e5e;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(123, 30, 94, 0.10);
}


/* =========================================================
 * PLACEHOLDER
 * ========================================================= */

#wqa-form input::placeholder,
#wqa-form textarea::placeholder {
    color: #999999;
    opacity: 1;
}


/* =========================================================
 * TEXTAREA
 * ========================================================= */

#wqa-form textarea {

    min-height: 130px;

    resize: vertical;
}


/* =========================================================
 * GÖNDER BUTONU ALANI
 * ========================================================= */

#wqa-form p:last-of-type {
    margin-top: 22px;
    margin-bottom: 0;
}


/* =========================================================
 * GÖNDER BUTONU
 * ========================================================= */

#wqa-submit-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 46px;

    padding: 11px 20px;

    border: 1px solid #7b1e5e;
    border-radius: 6px;

    background: #7b1e5e;
    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.4;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s ease;
}

#wqa-submit-btn:hover {
    background: #68194f;
    border-color: #68194f;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.10);

    transform: translateY(-1px);
}

#wqa-submit-btn:active {
    transform: translateY(0);
}

#wqa-submit-btn:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(123, 30, 94, 0.15);
}

#wqa-submit-btn:disabled {
    opacity: 0.65;

    cursor: wait;

    transform: none;

    box-shadow: none;
}


/* =========================================================
 * AJAX MESAJ
 * ========================================================= */

#wqa-message {

    display: none;

    margin-top: 16px;

    padding: 12px 14px;

    border-radius: 6px;

    font-family: inherit;
    font-size: 14px;

    line-height: 1.5;

    box-sizing: border-box;
}


/* =========================================================
 * BAŞARI MESAJI
 * ========================================================= */

#wqa-message.success {

    display: block;

    background: #edf8f1;

    border: 1px solid #b9e3c7;

    color: #176b35;
}


/* =========================================================
 * HATA MESAJI
 * ========================================================= */

#wqa-message.error {

    display: block;

    background: #fff2f2;

    border: 1px solid #f0c2c2;

    color: #a32121;
}


/* =========================================================
 * HONEYPOT
 * ========================================================= */

.wqa-honeypot {

    position: absolute !important;

    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    opacity: 0 !important;
}


/* =========================================================
 * MODAL AÇIKKEN BODY
 * ========================================================= */

body.wqa-modal-open {
    overflow: hidden;
}


/* =========================================================
 * SORU CEVAP LİSTESİ
 * ========================================================= */

.wqa-question-list {
    margin: 20px 0 0;
}

.wqa-question-item {
    margin: 0 0 14px;
    padding: 16px 18px;

    border: 1px solid #eeeeee;
    border-radius: 8px;

    background: #ffffff;
}

.wqa-question-item:last-child {
    margin-bottom: 0;
}

.wqa-question {
    margin: 0 0 8px;

    color: #222222;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.wqa-answer {
    margin: 0;

    color: #555555;

    font-size: 14px;
    line-height: 1.6;
}

.wqa-answer strong {
    color: #333333;
}


/* =========================================================
 * MOBİL
 * ========================================================= */

@media (max-width: 600px) {

    .wqa-modal-overlay {

        align-items: flex-start;

        padding: 16px;
    }


    .wqa-modal-content {

        max-width: 100%;

        max-height: calc(100vh - 32px);

        margin-top: 8vh;

        padding: 24px 20px 22px;

        border-radius: 10px;
    }


    #wqa-modal-title {

        padding-right: 38px;

        padding-bottom: 17px;

        font-size: 19px;
    }


    #wqa-form {

        margin-top: 18px;
    }


    #wqa-form textarea {

        min-height: 115px;
    }


    .wqa-modal-close {

        top: 10px;
        right: 10px;

        width: 34px;
        height: 34px;
    }


    .wqa-question-item {

        padding: 14px 15px;
    }

}


/* =========================================================
 * ÇOK KÜÇÜK EKRAN
 * ========================================================= */

@media (max-width: 380px) {

    .wqa-modal-overlay {

        padding: 10px;
    }


    .wqa-modal-content {

        max-height: calc(100vh - 20px);

        margin-top: 4vh;

        padding: 20px 16px;
    }


    #wqa-modal-title {

        font-size: 18px;
    }


    #wqa-form input[type="text"],
    #wqa-form input[type="email"],
    #wqa-form textarea {

        font-size: 16px;
    }

}


/* =========================================================
 * HAREKET AZALTMA TERCİHİ
 * ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .wqa-modal-content,
    .wqa-ask-button-wrapper .wqa-btn,
    #wqa-submit-btn,
    .wqa-modal-close {

        animation: none !important;

        transition: none !important;
    }

}