/* Scroll anchor: when navigating with #contact-form, leave space for fixed header */
#contact-form {
    scroll-margin-top: 8rem;
}

/* Autofill: prevent browser default background (rule 9: no inline style in JS) */
#contact-form input:-webkit-autofill,
#contact-form input:-webkit-autofill:hover,
#contact-form input:-webkit-autofill:focus,
#contact-form input:-webkit-autofill:active,
#contact-form textarea:-webkit-autofill,
#contact-form textarea:-webkit-autofill:hover,
#contact-form textarea:-webkit-autofill:focus,
#contact-form textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Z-index positioning classes */
.contact-z-0 {
    z-index: 0;
}

.contact-z-1 {
    z-index: 1;
}

.contact-z-2 {
    z-index: 2;
}

/* Contact hero background positioning */
.contact-hero-bg {
    position: absolute;
    top: -96px;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Contact hero header with background - reduced height by 1/3 */
.contact-hero-header-with-bg {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem !important; /* pt-24 = 6rem - keep top padding for navbar */
    padding-bottom: 0 !important; /* Remove bottom padding completely */
    border-bottom: none !important; /* Remove border */
    margin-bottom: 0 !important;
    box-sizing: border-box; /* Padding'i height'a dahil et */
}

@media (min-width: 768px) {
    .contact-hero-header-with-bg {
        min-height: 48vh;
    }
}

/* Hero içindeki yazıları hem yatayda hem dikeyde tam ortala */
.contact-page .contact-hero-header-with-bg {
    position: relative;
}

.contact-page .contact-hero-header-with-bg > div.relative {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ASIL SORUN: Hero header'ın min-height'ı içeriğinden büyükse altında boşluk kalıyor
   Hero görseli bottom: 0 ile header'ın padding-box'ının altına kadar uzanıyor
   ama header'ın border-box'ının altında boşluk kalıyor
   
   ÇÖZÜM: Hero görselini header'ın gerçek altına kadar uzat - min-height'ı da kapsayacak şekilde */
.contact-page .contact-hero-header-with-bg {
    position: relative;
    overflow: hidden; /* Header'ın dışına taşan görseli gizle */
}

.contact-page .contact-hero-header-with-bg .contact-hero-bg {
    bottom: 0 !important;
    top: -96px !important; /* Navbar'ın altına kadar */
    height: calc(100% + 96px) !important; /* Header'ın tam yüksekliği + navbar padding */
}

/* ASIL SORUN VE ÇÖZÜM: Hero header'da py-8 lg:py-12 padding'i var
   Tailwind CSS'in specificity'si çok yüksek, bu yüzden daha güçlü override gerekiyor
   
   ÇÖZÜM: Tüm olası kombinasyonları override et ve hero görselini header'ın gerçek altına kadar uzat */

/* Hero header'ın padding-bottom'unu kaldır - TÜM olası selector kombinasyonları */
.contact-page header.contact-hero-header.contact-hero-header-with-bg,
.contact-page header.contact-hero-header.contact-hero-header-with-bg.py-8,
.contact-page header.contact-hero-header.py-8.contact-hero-header-with-bg,
.contact-page header.contact-hero-header.contact-hero-header-with-bg[class*="py-"],
.contact-page header.contact-hero-header[class*="py-"].contact-hero-header-with-bg {
    padding-bottom: 0 !important;
    padding-block-end: 0 !important;
    margin-bottom: 0 !important;
}

/* lg:py-12 için de override et - tüm breakpoint'lerde */
@media (min-width: 640px) {
    .contact-page header.contact-hero-header.contact-hero-header-with-bg,
    .contact-page header.contact-hero-header.contact-hero-header-with-bg[class*="py-"],
    .contact-page header.contact-hero-header[class*="py-"].contact-hero-header-with-bg {
        padding-bottom: 0 !important;
        padding-block-end: 0 !important;
    }
}

@media (min-width: 768px) {
    .contact-page header.contact-hero-header.contact-hero-header-with-bg,
    .contact-page header.contact-hero-header.contact-hero-header-with-bg[class*="py-"],
    .contact-page header.contact-hero-header[class*="py-"].contact-hero-header-with-bg {
        padding-bottom: 0 !important;
        padding-block-end: 0 !important;
    }
}

@media (min-width: 1024px) {
    .contact-page header.contact-hero-header.contact-hero-header-with-bg,
    .contact-page header.contact-hero-header.contact-hero-header-with-bg[class*="lg:py-"],
    .contact-page header.contact-hero-header[class*="lg:py-"].contact-hero-header-with-bg {
        padding-bottom: 0 !important;
        padding-block-end: 0 !important;
    }
}

/* Breadcrumb'ın tüm margin/padding'lerini kaldır - boşluğu tamamen kapat */
.contact-page .contact-hero-header-with-bg + .breadcrumb-wrapper,
.contact-page header.contact-hero-header-with-bg + .breadcrumb-wrapper {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-block-start: 0 !important;
}

.contact-page .contact-hero-header-with-bg + .breadcrumb-wrapper .breadcrumb-container,
.contact-page header.contact-hero-header-with-bg + .breadcrumb-wrapper .breadcrumb-container {
    padding-top: 0 !important;
    padding-block-start: 0 !important;
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Hero görseli header'ın gerçek altına kadar uzanmalı */
.contact-page .contact-hero-header-with-bg .contact-hero-bg,
.contact-page header.contact-hero-header-with-bg .contact-hero-bg {
    bottom: 0 !important; /* Header'ın gerçek altına kadar */
}

/* Background image via CSS custom property from data attribute */
[data-bg-image] {
    background-image: var(--bg-image, none);
}

/* Google Maps wrapper - filter burada uygulanır (CSP-compliant, no inline styles) */
.contact-map-wrapper {
    /* Default: grayscale map */
    -webkit-filter: grayscale(100%) contrast(1.1) brightness(0.95) !important;
    filter: grayscale(100%) contrast(1.1) brightness(0.95) !important;
    transition: filter 250ms ease, -webkit-filter 250ms ease;
}

/* Google Maps iframe border */
.contact-map-iframe {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Hover: bring colors back (desktop/laptop pointers) */
@media (hover: hover) and (pointer: fine) {
    .contact-map-wrapper:hover {
        -webkit-filter: none !important;
        filter: none !important;
    }
}

/* Icon-only variant (small square) */
.wa-link.wa-icon-only {
    padding: 0.25rem;
    border-radius: 8px;
    width: 2.2rem;
    height: 2.2rem;
    justify-content: center;
}
.wa-link.wa-icon-only .wa-svg {
    height: 18px;
    width: 18px;
}

/* Success message animation classes */
.success-message-entering {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.success-message-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.success-message-exiting {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* TR contact consent (KVKK) – checkbox visible on dark/light */
.contact-consent input[type="checkbox"] {
    accent-color: #D4AF37;
}
body.theme-light .contact-consent input[type="checkbox"] {
    accent-color: #0a0a0a;
}

/* Aydınlatma Metni modal (TR contact form) */
.aydinlatma-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s ease, opacity 0.25s ease;
}
.aydinlatma-modal.is-open {
    visibility: visible;
    opacity: 1;
}
.aydinlatma-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}
.aydinlatma-modal-box {
    position: relative;
    width: 100%;
    max-width: 56rem;
    min-width: min(90vw, 36rem);
    max-height: calc(100vh - 2rem);
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.theme-light .aydinlatma-modal-box {
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.aydinlatma-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
body.theme-light .aydinlatma-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
.aydinlatma-modal-title {
    margin: 0;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}
body.theme-light .aydinlatma-modal-title {
    color: #0a0a0a;
}
.aydinlatma-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.aydinlatma-modal-close:hover,
.aydinlatma-modal-close:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}
body.theme-light .aydinlatma-modal-close {
    color: rgba(0, 0, 0, 0.6);
}
body.theme-light .aydinlatma-modal-close:hover,
body.theme-light .aydinlatma-modal-close:focus {
    color: #0a0a0a;
    background-color: rgba(0, 0, 0, 0.06);
}
.aydinlatma-modal-close-icon {
    width: 1.25rem;
    height: 1.25rem;
}
.aydinlatma-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}
body.theme-light .aydinlatma-modal-body {
    color: rgba(0, 0, 0, 0.85);
}
.aydinlatma-modal-body p {
    margin-top: 0;
    margin-bottom: 1rem;
}
.aydinlatma-modal-body p:last-child {
    margin-bottom: 0;
}
.aydinlatma-modal-body strong {
    font-weight: 700;
}
.aydinlatma-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
body.theme-light .aydinlatma-modal-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}
.aydinlatma-modal-btn-close {
    width: 100%;
    padding: 0.625rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0a0a0a;
    background-color: #D4AF37;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.aydinlatma-modal-btn-close:hover,
.aydinlatma-modal-btn-close:focus {
    background-color: #c19e2e;
    color: #0a0a0a;
}

/* Contact Hero: Inter font and About page font sizes */
.contact-hero-header h1,
.contact-hero-header h1.font-playfair {
    font-size: 1.1875rem !important; /* 19px - mobile */
}

@media (min-width: 640px) {
    .contact-hero-header h1 {
        font-size: 1.375rem !important; /* 22px - sm */
    }
}

@media (min-width: 768px) {
    .contact-hero-header h1 {
        font-size: 1.625rem !important; /* 26px - md */
    }
}

@media (min-width: 1024px) {
    .contact-hero-header h1 {
        font-size: 2.0625rem !important; /* 33px - lg */
    }
}

@media (min-width: 1280px) {
    .contact-hero-header h1 {
        font-size: 2.5rem !important; /* 40px - xl */
    }
}

.contact-hero-header p,
.contact-hero-header p.font-inter {
    font-size: 1rem !important; /* text-base - mobile */
}

@media (min-width: 768px) {
    .contact-hero-header p {
        font-size: 1.125rem !important; /* text-lg - md */
    }
}

@media (min-width: 1024px) {
    .contact-hero-header p {
        font-size: 1.25rem !important; /* text-xl - lg */
    }
}

/* Override Tailwind text size classes for contact hero */
.contact-hero-header h1.text-4xl,
.contact-hero-header h1.text-5xl,
.contact-hero-header h1.text-6xl {
    font-weight: 300 !important;
}

@media (min-width: 640px) {
    .contact-hero-header h1.text-4xl {
        font-size: 1.375rem !important;
    }
}

@media (min-width: 768px) {
    .contact-hero-header h1.text-4xl,
    .contact-hero-header h1.text-5xl {
        font-size: 1.625rem !important;
    }
}

@media (min-width: 1024px) {
    .contact-hero-header h1.text-4xl,
    .contact-hero-header h1.text-5xl,
    .contact-hero-header h1.text-6xl {
        font-size: 2.0625rem !important;
    }
}

@media (min-width: 1280px) {
    .contact-hero-header h1.text-4xl,
    .contact-hero-header h1.text-5xl,
    .contact-hero-header h1.text-6xl {
        font-size: 2.5rem !important;
    }
}

/* Font family now managed by CSS variable */

/* Font family now managed by CSS variable */

/* Get In Touch heading - 2 clicks smaller */
.contact-page h2,
.contact-page h2.font-playfair,
.contact-page h2.text-3xl,
.contact-page h2.text-4xl,
.contact-page h2.text-5xl {
    font-size: 1.25rem !important; /* 20px - mobile (was text-3xl: 30px) */
}

@media (min-width: 768px) {
    .contact-page h2,
    .contact-page h2.text-3xl,
    .contact-page h2.text-4xl {
        font-size: 1.5rem !important; /* 24px - md (was text-4xl: 36px) */
    }
}

@media (min-width: 1024px) {
    .contact-page h2,
    .contact-page h2.text-3xl,
    .contact-page h2.text-4xl,
    .contact-page h2.text-5xl {
        font-size: 1.875rem !important; /* 30px - lg (was text-5xl: 48px) */
    }
}

/* WhatsApp / phone input styles (no inline styles) */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.phone-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.75rem 0;
    font-family: inherit;
    font-size: 0.875rem;
}
/* Phone contact info — stacked layout */
.phone-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* WhatsApp link — clean, no wrapper styles */
.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0;
    border: 2px solid rgba(255,255,255,0.38);
    background: transparent;
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.wa-link:hover,
.wa-link:focus {
    transform: translateY(-2px);
    border-color: #25d366;
    background-color: rgba(37, 211, 102, 0.09);
    color: #25d366;
}

@media (max-width: 639px) {
    .wa-link {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    .wa-link .wa-svg {
        height: 20px;
        width: 20px;
    }
    .wa-link .wa-text {
        font-size: 0.9375rem;
    }
}

/* Light theme: make pill border and text visible on white background */
body.theme-light .wa-link {
    border: 2px solid rgba(0,0,0,0.52);
    color: rgba(0,0,0,0.92);
    background: transparent;
}
body.theme-light .wa-link:hover,
body.theme-light .wa-link:focus {
    border-color: #25d366;
    background-color: rgba(37, 211, 102, 0.08);
    color: #128c7e;
}

/* WhatsApp logo image */
.wa-logo {
    display: block;
    height: 38px;
    width: auto;
}

/* SVG version of the WhatsApp logo (replaces .wa-logo when used) */
.wa-svg {
    display: block;
    height: 22px;
    width: 22px;
    flex-shrink: 0;
    fill: currentColor;
}
.wa-text {
    display: inline-block;
    margin-left: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
    color: inherit;
    vertical-align: middle;
}

/* Dark theme: invert logo to white, screen blend hides inverted bg */
.theme-dark .wa-logo {
    filter: invert(1) brightness(10);
    mix-blend-mode: screen;
}

/* Light theme: keep original dark logo as-is */
.theme-light .wa-logo {
    filter: none;
    mix-blend-mode: normal;
}
