/* ===== "Teklif Al" açılır formu ve butonları — inc/teklif-popup.php, js/teklif.js =====
   Renkler: sitenin ana mavisi #074691, menü barı #1a2634, WhatsApp yeşili #25d366 */

/* ---------- Menü satırının sonundaki buton (inc/ustmenu.php li.teklif-menu) ---------- */
.header-nav .nav > li.teklif-menu > a.teklif-ust-buton {
    background: #074691;
    color: #fff !important;
    white-space: nowrap;
    transition: background-color .15s ease;
}
.header-nav .nav > li.teklif-menu > a.teklif-ust-buton:hover,
.header-nav .nav > li.teklif-menu > a.teklif-ust-buton:focus {
    background: #2a6fc4;
    color: #fff !important;
}
.teklif-ust-buton .fa {
    margin-right: 6px;
}
/* Masaüstü: koyu menü barında küçük mavi buton */
@media only screen and (min-width: 992px) {
    .header-logo-top .header-nav .nav > li.teklif-menu {
        display: flex;
        align-items: center;
        margin-left: 8px;
    }
    .header-logo-top .header-nav .nav > li.teklif-menu > a.teklif-ust-buton {
        padding: 9px 16px;
        border-radius: 4px;
        line-height: 1.2;
    }
}

/* ---------- Sabit buton (sol alt; sağ alt WhatsApp ve yukarı çık butonunun) ---------- */
.teklif-sabit {
    position: fixed;
    left: 15px;
    bottom: 15px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 0;
    border-radius: 30px;
    background: #074691;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 6px 18px rgba(7, 70, 145, .35);
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}
.teklif-sabit:hover,
.teklif-sabit:focus {
    background: #05346c;
    transform: translateY(-2px);
    outline: none;
}
.teklif-sabit .fa {
    font-size: 16px;
}
@media only screen and (max-width: 480px) {
    .teklif-sabit {
        left: 10px;
        bottom: 10px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ---------- Ürün sayfası yan kutusu (js/teklif.js .sticky_column içine ekler) ---------- */
.teklif-yan-kutu {
    margin: 0 0 30px;
    padding: 22px 20px;
    background: #1a2634;
    color: #cfd6de;
    text-align: center;
}
.teklif-yan-kutu strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.teklif-yan-kutu span {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.teklif-yan-kutu__buton {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 4px;
    background: #074691;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.teklif-yan-kutu__buton:hover,
.teklif-yan-kutu__buton:focus {
    background: #2a6fc4;
    outline: none;
}

/* ---------- Footer üstü bant (inc/footer.php) ---------- */
.teklif-bant {
    padding: 34px 0;
    background: #074691;
    color: #fff;
}
.teklif-bant .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.teklif-bant h4 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-transform: none;
}
.teklif-bant p {
    margin: 0;
    color: #d4e2f3;
    font-size: 15px;
}
.teklif-bant__butonlar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.teklif-bant__buton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #fff;
    color: #074691 !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.teklif-bant__buton:hover {
    background: transparent;
    color: #fff !important;
}
.teklif-bant__buton--wp {
    border-color: #25d366;
    background: #25d366;
    color: #fff !important;
}
.teklif-bant__buton--wp:hover {
    border-color: #fff;
}

/* ---------- Açılır pencere ---------- */
html.teklif-acik,
html.teklif-acik body {
    overflow: hidden;           /* arkadaki sayfa kaymasın */
}

.teklif-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99990;             /* SiteMesaj kutusu (100000) bunun üstünde açılabilir */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 16px;
    overflow-y: auto;
    background: rgba(26, 38, 52, .65);
    opacity: 0;
    transition: opacity .2s ease;
    -webkit-overflow-scrolling: touch;
}
.teklif-modal[hidden] {
    display: none;
}
.teklif-modal--acik {
    opacity: 1;
}

.teklif-modal__pencere {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: auto 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    font-family: 'Poppins', sans-serif;
    color: #23252d;
    transform: translateY(16px);
    transition: transform .2s ease;
}
.teklif-modal--acik .teklif-modal__pencere {
    transform: none;
}

.teklif-modal__govde {
    padding: 30px 32px 28px;
}
.teklif-modal__govde[hidden] {
    display: none;
}

.teklif-modal__kapat {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8a8f99;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
}
.teklif-modal__kapat:hover,
.teklif-modal__kapat:focus {
    background: #f1f3f6;
    color: #23252d;
    outline: none;
}

.teklif-modal__baslik {
    margin: 0 30px 6px 0;
    color: #23252d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0;
}
.teklif-modal__alt {
    margin: 0 0 20px;
    color: #5a5f69;
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Form ---------- */
.teklif-form__satir {
    display: flex;
    gap: 14px;
}
.teklif-form__satir > .teklif-alan {
    flex: 1 1 0;
    min-width: 0;
}
.teklif-alan {
    margin-bottom: 14px;
}
.teklif-alan label {
    display: block;
    margin-bottom: 5px;
    color: #23252d;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}
.teklif-alan label b {
    color: #d32f2f;
    font-weight: 600;
}
.teklif-alan label em {
    color: #8a8f99;
    font-style: normal;
    font-weight: 400;
}
.teklif-alan input,
.teklif-alan select,
.teklif-alan textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5d9e0;
    border-radius: 6px;
    background: #fff;
    color: #23252d;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.teklif-alan select {
    height: 44px;
}
.teklif-alan textarea {
    resize: vertical;
    min-height: 74px;
}
.teklif-alan input::placeholder,
.teklif-alan textarea::placeholder {
    color: #a6a6a6;
    opacity: 1;
}
.teklif-alan input:focus,
.teklif-alan select:focus,
.teklif-alan textarea:focus {
    border-color: #074691;
    box-shadow: 0 0 0 3px rgba(7, 70, 145, .15);
    outline: none;
}
.teklif-alan--hata input,
.teklif-alan--hata select,
.teklif-alan--hata textarea {
    border-color: #d32f2f;
}
.teklif-alan__hata {
    display: block;
    margin-top: 4px;
    color: #d32f2f;
    font-size: 12.5px;
    line-height: 1.4;
}
.teklif-alan__hata:empty {
    display: none;
}

.teklif-form__alt {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
}
.teklif-alan--soru {
    margin-bottom: 0;
}
.teklif-alan--soru input {
    width: 90px;
}
.teklif-soru {
    color: #074691;
    font-weight: 700;
}
.teklif-form__gonder {
    flex: 0 0 auto;
    align-self: flex-end;
    min-width: 170px;
    padding: 13px 26px;
    border: 0;
    border-radius: 6px;
    background: #074691;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.teklif-form__gonder:hover,
.teklif-form__gonder:focus {
    background: #05346c;
    outline: none;
}
.teklif-form__gonder[disabled] {
    opacity: .7;
    cursor: wait;
}

.teklif-form__hata-genel {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #f3c2c2;
    border-radius: 6px;
    background: #fff4f4;
    color: #b00000;
    font-size: 14px;
}
.teklif-form__hata-genel[hidden] {
    display: none;
}
.teklif-form__hata-genel pre {
    margin: 8px 0 0;
    white-space: pre-wrap;
    font-size: 12px;
    color: #b00000;
    background: none;
    border: 0;
    padding: 0;
}

/* ---------- WhatsApp dosya bilgilendirmesi ---------- */
.teklif-wp {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid #c8eed6;
    border-radius: 8px;
    background: #f0fbf4;
}
.teklif-wp__ikon {
    color: #25d366;
    font-size: 32px;
}
.teklif-wp__metin {
    flex: 1 1 260px;
    font-size: 13px;
    line-height: 1.5;
    color: #3d4450;
}
.teklif-wp__metin strong {
    display: block;
    color: #23252d;
    font-size: 14px;
}
.teklif-wp__buton,
.teklif-wp__buton:focus {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #25d366;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.teklif-wp__buton:hover {
    background: #1ebe5a;
    color: #fff !important;
}

/* ---------- Gönderildi ---------- */
.teklif-basari {
    text-align: center;
}
.teklif-basari .teklif-modal__baslik {
    margin-right: 0;
}
.teklif-basari__ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 6px auto 16px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
}
.teklif-basari__ikon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.teklif-basari__metin {
    margin: 0 0 18px;
    font-size: 15px;
    color: #3d4450;
}
.teklif-basari__wp-metin {
    margin: 0 0 12px;
    font-size: 14px;
    color: #5a5f69;
}
.teklif-basari__kapat {
    display: block;
    margin: 18px auto 0;
    padding: 8px 18px;
    border: 0;
    background: none;
    color: #5a5f69;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Mobil ---------- */
@media only screen and (max-width: 575px) {
    .teklif-modal {
        padding: 0;
    }
    .teklif-modal__pencere {
        min-height: 100%;
        border-radius: 0;
    }
    .teklif-modal__govde {
        padding: 24px 18px 22px;
    }
    .teklif-modal__baslik {
        font-size: 21px;
    }
    .teklif-alan input,
    .teklif-alan select,
    .teklif-alan textarea {
        font-size: 16px;        /* 16px altında iPhone alana dokununca sayfayı büyütür */
    }
    .teklif-form__satir {
        display: block;
    }
    .teklif-form__alt {
        flex-direction: column;
        align-items: stretch;
    }
    .teklif-form__gonder {
        width: 100%;
        align-self: stretch;
    }
    .teklif-wp__buton {
        width: 100%;
        justify-content: center;
    }
    .teklif-bant {
        text-align: center;
    }
    .teklif-bant .container,
    .teklif-bant__butonlar {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teklif-modal,
    .teklif-modal__pencere,
    .teklif-sabit {
        transition: none;
    }
}
