﻿
:root {
    --primary: var(--company-primary);
    --primary-light: #5f7280;
    --surface: #ffffff;
    --surface-alt: #f3f4f6;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --danger: #e11d48;
}

/* Default layout’taki bootstrap navbar’ı gizle (Home / Privacy olan) */
header .navbar {
    display: none !important;
}

/* Genel */

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* DIŞ SCROLL YOK */
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #e9edf4 0%, #dde3ee 100%);
    color: var(--text-main);
}

.wh-page {
    height: 100vh; /* Tüm ekran yüksekliği */
    display: flex;
    flex-direction: column;
}

/* NAVBAR – üstteki şerit (logo solda, dil sağda) */

.wh-navbar {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.wh-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wh-navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wh-navbar-logo {
    display: flex;
    align-items: center;
}
    .wh-navbar-logo1 img {
        height: 58px;
        width: auto;
        display: block;
    }
    .wh-navbar-logo img {
        height: 58px;
        width: auto;
        display: block;
    }

.wh-navbar-right {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
}

.wh-lang-form {
    margin: 0;
}

.wh-lang-select {
    border-radius: 999px;
    border: 1px solid rgba(243, 244, 246, 0.7);
    background: rgba(15, 23, 42, 0.15);
    color: #f9fafb;
    padding: 9px 10px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

    .wh-lang-select option {
        color: #111827;
    }

/* MAIN – form alanı */

.wh-main {
    flex: 1;
    padding: 28px 24px 28px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.wh-form-shell {
    max-width: 1000px;
    width: 100%;
    background-color: var(--surface);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(148, 163, 184, 0.25);
    padding: 22px 24px 18px;
    border-top: 4px solid var(--primary);
    box-sizing: border-box;
}

.wh-form-header {
    margin-bottom: 14px;
}

.wh-form-title {
    font-size: 22px;
    font-weight: 650;
    color: var(--text-main);
    margin-bottom: 4px;
}

.wh-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Özel dosya seç barı */

.wh-file-wrapper {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.wh-file-button {
    position: relative;
    padding: 8px 14px;
    background-color: #e5e7eb;
    border-right: 1px solid #d1d5db;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

    .wh-file-button:hover {
        background-color: #d4d4d8;
    }

.wh-file-name {
    padding: 8px 10px;
    font-size: 13px;
    color: #6b7280;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Native input’u gizle ama tıklanabilir bırak */
.wh-file-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Form alanları */

.wh-form {
    margin-top: 8px;
}

.wh-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.wh-form-group {
    display: flex;
    flex-direction: column;
}

.wh-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.wh-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.wh-label-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.wh-required::after {
    content: " *";
    color: var(--danger);
}

.wh-input,
.wh-textarea,
.wh-file {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-main);
    background-color: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    box-sizing: border-box;
}

    .wh-input::placeholder,
    .wh-textarea::placeholder {
        color: #9ca3af;
    }

    .wh-input:focus,
    .wh-textarea:focus,
    .wh-file:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(70, 87, 99, 0.15);
        background-color: #ffffff;
    }

.wh-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Checkbox satırı */

.wh-checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wh-checkbox-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .wh-checkbox-inner input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary);
        cursor: pointer;
    }

    .wh-checkbox-inner label {
        margin: 0;
        font-size: 13px;
        color: #374151;
    }

/* Küçük açıklama ve hata mesajları */

.wh-small {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.field-validation-error {
    font-size: 11px;
    color: #b91c1c;
    margin-top: 3px;
}

.validation-summary-errors {
    font-size: 12px;
    color: #b91c1c;
    margin-bottom: 6px;
}

/* Başarılı gönderim & API hata kutuları */

.wh-success-box {
    background-color: #ecfdf3;
    border: 1px solid #16a34a;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #166534;
    margin-bottom: 8px;
}

    .wh-success-box .emoji {
        font-size: 20px;
    }

.wh-api-error {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 12px;
    color: #b91c1c;
    margin-bottom: 8px;
}

/* Gönder butonu */

.wh-form-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.wh-submit-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, #2c3b46 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(148, 163, 184, 0.7);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

    .wh-submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 35px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(191, 219, 254, 0.9);
        background: linear-gradient(135deg, #566878 0%, #1f2933 100%);
    }

    .wh-submit-btn:active {
        transform: translateY(0);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(148, 163, 184, 1);
    }

    .wh-submit-btn .icon {
        font-size: 15px;
    }

/* FOOTER – alttaki şerit */

footer.footer.text-muted {
    display: none !important;
}

.wh-footer {
    background-color: var(--primary);
    color: var(--company-text);
    padding: 10px 16px;
}

.wh-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.wh-footer-logo1 img {
    height: 58px;
    width: auto;
    display: block;
}
.wh-footer-logo img {
    height: 58px;
    width: auto;
    display: block;
}

.wh-navbar,
.wh-footer {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.wh-logo-divider {
    width: 1px;
    height: 60px;
    background: var(--company-text, #cbd5e1);
    opacity: .6;
}
.wh-footer-text {
    font-size: 12px;
    line-height: 1.4;
}

.wh-footer-copy {
    margin-top: 3px;
    font-size: 11px;
    opacity: 0.9;
}

/* Responsive */

@media (max-width: 768px) {
    .wh-main {
        padding: 12px 8px 12px;
    }

    .wh-form-shell {
        padding: 16px 14px 14px;
        border-radius: 16px;
    }

    .wh-form-title {
        font-size: 20px;
    }

    .wh-navbar-inner,
    .wh-footer-inner {
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* =========================================================
   RESPONSIVE PATCH (en alta ekleyin)
   ========================================================= */

/* Mobil tarayıcılarda 100vh taşmalarını azalt */
.wh-page {
    min-height: 100dvh;
    height: 100dvh; /* 100vh yerine dinamik */
}

/* DIŞ SCROLL YOK derken içerik kesilmesin: scroll’u MAIN'e ver */
html, body {
    height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden; /* yatay taşmayı engelle */
    overflow-y: hidden; /* dış scroll yok kalsın */
}

/* Form uzarsa burada scroll olsun */
.wh-main {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(12px, 2.5vw, 28px) clamp(8px, 2.5vw, 24px);
}

/* İç boşlukları akıllı ölçekle */
.wh-form-shell {
    padding: clamp(14px, 2.2vw, 22px) clamp(12px, 2.2vw, 24px) clamp(12px, 2vw, 18px);
    border-radius: clamp(14px, 2.2vw, 20px);
}

.wh-form-title {
    font-size: clamp(18px, 2.4vw, 22px);
}

.wh-form-subtitle {
    font-size: clamp(12px, 1.6vw, 13px);
}

/* Navbar/footer dar ekranda taşmasın */
.wh-navbar-inner,
.wh-footer-inner {
    flex-wrap: wrap;
    gap: 10px 14px;
}

.wh-navbar-logo img,
.wh-footer-logo img {
    height: clamp(40px, 7vw, 58px);
}

/* Geniş ekranda iki kolon (formunuz uygunsa) */
@media (min-width: 900px) {
    .wh-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 18px;
    }
}

/* Dosya seçici dar ekranda satır satır */
@media (max-width: 520px) {
    .wh-file-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .wh-file-button {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #d1d5db;
        text-align: center;
    }

    .wh-file-name {
        width: 100%;
    }
}

/* Küçük telefon: buton full width, daha kompakt */
@media (max-width: 480px) {
    .wh-form-actions {
        justify-content: stretch;
    }

    .wh-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 18px;
    }

    .wh-textarea {
        min-height: 120px;
    }

    .wh-input,
    .wh-textarea,
    .wh-file {
        padding: 10px 10px;
    }
}

/* Kısa ekran (küçük laptop / yatay telefon): üst-alt boşluk azalt */
@media (max-height: 680px) {
    .wh-main {
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .wh-form-title {
        margin-bottom: 2px;
    }
}
/* Masaüstünde bile tek kolon kalsın */
.wh-form-grid {
    grid-template-columns: 1fr !important;
}
/* KVKK link ve modal */

.kvkk-link {
    margin-left: 4px;
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}

    .kvkk-link:hover {
        color: #1d4ed8;
    }

/* Modal genel yapı */

.kvkk-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

    .kvkk-modal.is-open {
        display: block;
    }

.kvkk-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.kvkk-modal-dialog {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.45);
    padding: 20px 24px 18px;
    max-height: calc(100vh - 80px);
    overflow: auto;
    box-sizing: border-box;
}

.kvkk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .kvkk-modal-header h2 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        color: #111827;
    }

.kvkk-modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    color: #4b5563;
}

    .kvkk-modal-close:hover {
        color: #111827;
    }

.kvkk-modal-body {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}
.kvkk-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

    .kvkk-link:hover {
        text-decoration: underline;
        opacity: 0.9;
    }

.kvkk-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.5;
}

.kvkk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 12px;
    color: #1D2A37;
}

    .kvkk-table th,
    .kvkk-table td {
        border: 1px solid #e5e7eb;
        padding: 6px 8px;
        vertical-align: top;
        color: #1D2A37;
    }

    .kvkk-table th {
        background-color: #f9fafb;
        font-weight: 600;
        color: #1D2A37;
    }
    
.kvkk-modal-body {
    color: #1d2a37;
}


  
    .kvkk-modal-body h6 {
        color: #004d86
    }
    .kvkk-modal-body h1,
    .kvkk-modal-body h2,
    .kvkk-modal-body h3 {
        color: #465763;
    }
    .kvkk-modal-body a {
        color: #2563eb;
        text-decoration: underline;
    }


    .kvkk-modal-body table {
        color: #ffffff;
        border-color: #ffffff;
    }

    .kvkk-modal-body th {
        font-weight: 600;
        background-color: #1d2a37;
        color: #ffffff;
    }
