/* b3: teklif penceresi ve formlari (GECICI; Oleocon tasarimi gelince degisir). A3: basari (olc-basari) ve hata (olc-ozet, olc-hata) iletileri iletisim formuyla ortak. */
.olc-pencere {
    border: 0;
    border-radius: 12px;
    padding: 0;
    width: min(640px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    color: inherit;
}
.olc-pencere::backdrop {
    background: rgba(10, 20, 30, 0.55);
}
.olc-pencere__ic {
    position: relative;
    padding: 28px 28px 24px;
}
.olc-pencere__kapat {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}
.olc-pencere__kapat:hover {
    opacity: 1;
}
.olc-form {
    position: relative;
}
.olc-form__izgara {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 12px;
}
@media (max-width: 560px) {
    .olc-form__izgara {
        grid-template-columns: 1fr;
    }
}
.olc-alan {
    display: block;
    margin: 0;
}
.olc-alan--genis {
    grid-column: 1 / -1;
}
.olc-alan > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.olc-alan input[type="text"],
.olc-alan input[type="email"],
.olc-alan input[type="tel"],
.olc-alan select,
.olc-alan textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 9px 11px;
    background: #fff;
    font: inherit;
}
.olc-alan input:focus,
.olc-alan select:focus,
.olc-alan textarea:focus {
    outline: 2px solid #a3b621;
    outline-offset: 1px;
}
/* A3 (sahip secimi H1, docs/panel-konseptleri/iletisim-sonuc): alanin altinda unlem simgeli kisa ipucu */
.olc-alan.is-hata input,
.olc-alan.is-hata select,
.olc-alan.is-hata textarea {
    border-color: #d64545;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.1);
}
.olc-hata {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 5px;
    color: #b83232;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}
.olc-hata[hidden] {
    display: none;
}
.olc-hata::before {
    content: "!";
    display: grid;
    place-items: center;
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    border-radius: 50%;
    background: #d64545;
    color: #fff;
    font: 800 10px/1 "Inter", system-ui, sans-serif;
}
.olc-onay {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    margin: 12px 0 0;
}
.olc-onay input {
    margin-top: 3px;
}
/* A3 (H1): formun ustunde ozet kutusu (kirmizi sol cizgi, unlem, "N alani kontrol edin", hatali alanlar baglanti). Sunucu ya da
   baglanti hatasi ayni kutuda sari ton (.olc-ozet--genel; konseptteki H3). */
.olc-ozet {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fdf0f0;
    box-shadow: inset 4px 0 0 #d64545;
    color: #7a1c1c;
    scroll-margin: 160px 0 24px; /* sabit ust cubuk + kategori seridi (~136px) altinda kalsin */
}
.olc-ozet[hidden] {
    display: none;
}
.olc-ozet__ikon {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d64545;
    color: #fff;
    font: 800 14px/1 "Inter", system-ui, sans-serif;
}
.olc-ozet__ic {
    min-width: 0;
    padding-top: 3px;
}
.olc-ozet__ic b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.olc-ozet__bag {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 4px;
}
.olc-ozet__bag:empty {
    display: none;
}
.olc-ozet__bag a {
    color: inherit;
    font-size: 13.5px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.olc-ozet__bag a:hover,
.olc-ozet__bag a:focus-visible {
    color: #4f0f0f;
    text-decoration-thickness: 2px;
}
.olc-ozet--genel {
    background: #fff8eb;
    box-shadow: inset 4px 0 0 #e0a526;
    color: #5c3d00;
}
.olc-ozet--genel .olc-ozet__ikon {
    background: #f6c453;
    color: #5c3d00;
}
.olc-ozet--genel .olc-ozet__ic b {
    font-weight: 600;
}
.olc-form__alt {
    margin: 16px 0 0;
}
/* 21 Kas: Gonder dugmesi ustune gelince lacivert zeminde lacivert yazi kaliyordu: yazi hep beyaz */
.olc-form .btn-primary,
.olc-form .btn-primary:hover,
.olc-form .btn-primary:focus-visible,
.olc-form .btn-primary:active {
    color: #fff;
}
.olc-form button[disabled] {
    opacity: 0.6;
    cursor: wait;
}
/* A3 (sahip secimi B1): formun yerinde ortali; cizilerek gelen yesil tik, baslik, aciklama (adim ve "Yeni mesaj yaz" yok) */
.olc-basari {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 0 20px;
    text-align: center;
}
.olc-basari[hidden] {
    display: none;
}
.olc-basari__tik {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
}
.olc-basari__tik circle {
    fill: rgba(163, 182, 33, 0.12);
    stroke: #a3b621;
    stroke-width: 3;
}
.olc-basari__tik path {
    fill: none;
    stroke: #6f7d12;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: olc-tik 0.6s 0.3s ease forwards;
}
@keyframes olc-tik {
    to {
        stroke-dashoffset: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .olc-basari__tik path {
        animation: none;
        stroke-dashoffset: 0;
    }
}
.olc-basari h2 {
    margin: 0 0 6px;
    font: 700 24px/1.2 "Tomato Grotesk", "Inter", system-ui, sans-serif;
    color: #011d3a;
}
.olc-basari h2:focus {
    outline: none;
}
.olc-basari p {
    max-width: 360px;
    margin: 0;
    color: #5d6680;
}
.olc-bolum-gecici .olc-form,
.olc-bolum-gecici .olc-basari {
    max-width: 720px;
}

/* 21 Kas: teklif penceresi telefonda (sahip: "mobilde kotu duruyor"). Bilesen tek (_teklif.php): her sayfada ayni.
   Tam ekran; kapat dugmesi ustte sabit (44px dokunma alani, lacivert); Gonder altta sabit, hep gorunur; alanlar sik;
   yazi 16px (iOS odakta yakinlastirmasin). */
.olc-pencere {
    max-height: calc(100dvh - 24px);
}
.olc-pencere__kapat {
    color: #011d3a;
}
@media (max-width: 575px) {
    .olc-pencere {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        overscroll-behavior: contain;
    }
    .olc-pencere__ic {
        padding: 0 16px;
    }
    .olc-pencere__kapat {
        position: sticky;
        top: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 6px -8px -50px auto;
        border-radius: 50%;
        background: #fff;
        font-size: 30px;
        opacity: 1;
    }
    .olc-pencere [data-form-alani] > h2 {
        padding-top: 18px;
        padding-right: 44px;
        font-size: 22px;
    }
    .olc-pencere [data-form-alani] > p {
        margin-bottom: 14px !important;
        font-size: 15px;
        line-height: 1.45;
    }
    .olc-pencere .olc-form__izgara {
        gap: 10px;
        margin-bottom: 10px;
    }
    .olc-pencere .olc-alan > span {
        margin-bottom: 3px;
    }
    .olc-pencere .olc-alan input[type="text"],
    .olc-pencere .olc-alan input[type="email"],
    .olc-pencere .olc-alan input[type="tel"],
    .olc-pencere .olc-alan select,
    .olc-pencere .olc-alan textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
    .olc-pencere .olc-alan textarea {
        min-height: 88px;
        height: 88px;
    }
    .olc-pencere .olc-onay {
        font-size: 13.5px;
    }
    .olc-pencere .olc-form__alt {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin: 12px -16px 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -6px 16px rgba(1, 29, 58, 0.08);
    }
    .olc-pencere .olc-form__alt .btn {
        width: 100%;
        min-height: 48px;
    }
    .olc-pencere .olc-basari {
        min-height: 70dvh;
    }
}
.olc-pencere__kapat:focus {
    outline: none;
}
.olc-pencere__kapat:focus-visible {
    box-shadow: 0 0 0 2px #a3b621;
}
