/* İletişim sayfasına özel stiller */

/* Not: Global sayfa scrollbar rezervasyonu `css/style.css` içinde yapılıyor. */

@media (max-width: 767px) {
    .contact-page-section.page-top-align {
        padding-top: 0 !important;
    }
    /* İletişim mobilde daha sıkı başlangıç: dinamik yükseklik yerine sabit offset */
    .contact-page-section.page-top-align > .container {
        padding-top: 44px;
    }
    .contact-page-section .section-title-row + * {
        margin-top: 8px;
    }
}

.contact-page-section .section-title-row + * {
    margin-top: 16px;
}

.contact-page-section {
    position: relative;
    padding: 60px 0 70px;
    background-position: center center;
    background-repeat: no-repeat;
    /* pattern-layer absolute olduğu için taşma durumunda gereksiz sayfa scroll'u oluşmasın */
    overflow: hidden;
}
.contact-page-section .pattern-layer {
    position: absolute;
    content: "";
    left: 0;
    top: 210px;
    right: auto;
    bottom: auto;
    width: 224px;
    height: 488px;
    pointer-events: none;
}
.contact-page-section .info-column .inner-column {
    position: relative;
    padding: 0;
}
.contact-address {
    position: relative;
    margin-bottom: 25px;
}

/* Yeni tasarım: kart görünümü + grid aralığı */
.contact-info-grid {
    margin-top: 18px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.contact-info-grid > .column {
    display: flex;
    align-items: stretch;
}
.contact-info-grid > .column > .contact-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}
.contact-info-grid .contact-address .inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.contact-info-grid .contact-address {
    margin-bottom: 0;
}
.contact-address.contact-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: none;
}
.contact-address.contact-card .inner-header {
    margin-bottom: 12px;
}
.contact-address .icon-box .contact-card-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.contact-address .inner {
    position: relative;
}
.contact-address .inner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.contact-address .icon-box {
    position: relative;
    color: var(--theme-primary, #FA6101);
    font-size: 20px;
    line-height: 1em;
    flex-shrink: 0;
}
.contact-address .inner h4 {
    position: relative;
    color: #646464;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4em;
    margin: 0;
    flex: 1;
}
.contact-address .text {
    position: relative;
    font-size: 16px;
    line-height: 1.7em;
    color: rgba(34, 34, 34, 0.7);
}
/* Telefon + e-posta (düz metin): turuncu + kalın */
.contact-address .text .contact-phone-plain,
.contact-address .text .contact-phone-link,
.contact-address .text .contact-email-plain {
    color: var(--theme-primary, #FA6101);
    font-weight: 600;
}
.contact-address .text .contact-phone-plain {
    display: none;
}
.contact-address .text .contact-phone-link {
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 767px) {
    .contact-card-col--phone .contact-card--phone-tap[data-tel-href] {
        cursor: pointer;
    }
    .contact-address .text .contact-phone-plain {
        display: none !important;
    }
    .contact-address .text .contact-phone-link {
        display: inline !important;
    }
    .contact-address .text .contact-phone-link:hover {
        color: var(--theme-primary, #FA6101);
        text-decoration: underline;
    }
}
@media (min-width: 768px) {
    .contact-address .text .contact-phone-plain {
        display: inline !important;
    }
    .contact-address .text .contact-phone-link {
        display: none !important;
    }
}

/* Adres metni: siyah (telefon/e-posta turuncu kurallarından ayrı) */
.contact-card-col--address .contact-address .text {
    font-weight: 600;
    color: var(--theme-primary, #FA6101);
}
/* Mobil: iletişim grid'i hariç (contact-info-grid kendi düzenini kullanır) */
@media only screen and (max-width: 767px) {
    .contact-page-section .info-column .inner-column .row:not(.contact-info-grid) > .column,
    .contact-page-section .info-column .inner-column .row:not(.contact-info-grid) .column {
        width: 50% !important;
        float: left;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* İletişim kartları: harita ile aynı iç genişlik (sütun padding'ini kaldır) */
    .contact-page-section .info-column .inner-column .contact-info-grid.row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        align-content: flex-start;
        margin-left: 0;
        margin-right: 0;
        column-gap: 12px;
        row-gap: 12px;
    }
    .contact-page-section .info-column .inner-column .contact-info-grid.row > .column {
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0;
        box-sizing: border-box;
    }
    /* Telefon + e-posta yan yana (ikisi de varsa); çok dar ekranda aşağıda üst üste */
    .contact-page-section .info-column .inner-column .contact-info-grid.has-phone.has-mail > .contact-card-col--phone,
    .contact-page-section .info-column .inner-column .contact-info-grid.has-phone.has-mail > .contact-card-col--email {
        width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        flex: 0 0 calc(50% - 6px) !important;
    }
    /* Sadece telefon veya sadece e-posta: tam satır */
    .contact-page-section .info-column .inner-column .contact-info-grid.has-phone:not(.has-mail) > .contact-card-col--phone,
    .contact-page-section .info-column .inner-column .contact-info-grid:not(.has-phone).has-mail > .contact-card-col--email {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    /* Adres: her zaman tam genişlik, telefon+e-postanın altında */
    .contact-page-section .info-column .inner-column .contact-info-grid.row > .contact-card-col--address {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .contact-page-section .info-column .inner-column .contact-info-grid > .column > .contact-card {
        height: auto !important;
        min-height: 0;
    }
    .contact-address {
        margin-bottom: 0;
    }
    .contact-address .text {
        font-size: 14px;
    }
    /* Harita mobilde daha az yükseklik */
    .contact-page-section .map-section .map-outer iframe,
    .contact-page-section .map-section .map-outer iframe.contact-map-iframe {
        height: 220px !important;
    }
    .contact-page-section .map-section {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }
    .contact-card-col--phone .contact-address .text .contact-phone-link,
    .contact-card-col--phone .contact-address .text .contact-phone-plain {
        white-space: nowrap;
    }
    .contact-card-col--phone .contact-address .text {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .contact-card-col--email .contact-address .text {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .contact-card-col--email .contact-address .text .contact-email-plain {
        white-space: nowrap;
    }
}

/* iPhone SE vb. çok dar ekran: telefon + e-posta yan yana sığmaz — tam genişlik, tek satır */
@media only screen and (max-width: 400px) {
    .contact-page-section .info-column .inner-column .contact-info-grid.has-phone.has-mail > .contact-card-col--phone,
    .contact-page-section .info-column .inner-column .contact-info-grid.has-phone.has-mail > .contact-card-col--email {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .contact-page-section .contact-info-grid.has-phone.has-mail .contact-address.contact-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 401–767: yan yana kartlarda numara/e-posta tek satır; taşarsa yatay kaydır (satır kırılmaz) */
@media only screen and (max-width: 767px) and (min-width: 401px) {
    .contact-page-section .contact-info-grid.has-phone.has-mail .contact-card-col--phone .contact-address .text,
    .contact-page-section .contact-info-grid.has-phone.has-mail .contact-card-col--email .contact-address .text {
        font-size: 14px;
    }
    .contact-page-section .contact-info-grid.has-phone.has-mail .contact-card-col--phone .contact-address.contact-card,
    .contact-page-section .contact-info-grid.has-phone.has-mail .contact-card-col--email .contact-address.contact-card {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media only screen and (max-width: 480px) {
    .contact-page-section .map-section .map-outer iframe,
    .contact-page-section .map-section .map-outer iframe.contact-map-iframe {
        height: 200px !important;
    }
}
/* Form alanı mobil boşluklarını kaldır */
@media only screen and (max-width: 599px) {
    .contact-page-section .form-column .inner-column {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* Mobil görünümde iletişim bölümü ile form bölümü arasındaki boşluğu artır */
@media only screen and (max-width: 767px) {
    .contact-page-section .form-column {
        margin-top: 20px;
    }
}
.contact-page-section .form-column .inner-column {
    position: relative;
    padding: 0 0 55px 0;
    background-color: #ffffff;
}
.contact-page-section .title-box {
    position: relative;
    margin-bottom: 35px;
}
.contact-page-section .title-box .title {
    position: relative;
    color: #222;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3em;
}
.contact-page-section .title-box h3 {
    position: relative;
    color: #222;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3em;
    margin-top: 0;
    margin-bottom: 20px;
}
.contact-form {
    position: relative;
}
.contact-form .form-group {
    position: relative;
    margin-bottom: 20px;
}
.contact-form .form-group.comment-group .icon {
    top: 20px;
    transform: none;
}
.contact-form .form-group .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #222 !important;
    font-size: 18px;
    line-height: 1em;
    z-index: 10;
    pointer-events: none;
}
.contact-form .form-group .icon i {
    color: #222 !important;
}
.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="password"],
.contact-form .form-group input[type="tel"],
.contact-form .form-group input[type="email"] {
    position: relative;
    display: block;
    width: 100%;
    color: #222;
    line-height: 1.5;
    padding: 12px 15px 12px 45px;
    height: auto;
    min-height: 48px;
    font-size: 16px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    -webkit-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    transition: all 200ms ease;
    box-shadow: none;
}
.contact-form .form-group select {
    position: relative;
    display: block;
    width: 100%;
    color: #222;
    line-height: 1.5;
    padding: 12px 40px 12px 45px;
    height: auto;
    min-height: 48px;
    font-size: 16px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    -webkit-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    transition: all 200ms ease;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23222' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}
.contact-form .form-group input::-webkit-input-placeholder,
.contact-form .form-group textarea::-webkit-input-placeholder {
    color: #999;
}
.contact-form .form-group input::-moz-placeholder,
.contact-form .form-group textarea::-moz-placeholder {
    color: #999;
}
.contact-form .form-group input:-ms-input-placeholder,
.contact-form .form-group textarea:-ms-input-placeholder {
    color: #999;
}
.contact-form .form-group input[type="text"]:focus,
.contact-form .form-group input[type="password"]:focus,
.contact-form .form-group input[type="tel"]:focus,
.contact-form .form-group input[type="email"]:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #2E90FF;
    box-shadow: none;
}
.contact-form .form-group textarea {
    position: relative;
    display: block;
    width: 100%;
    line-height: 1.5;
    padding: 12px 15px 12px 45px;
    color: #222;
    min-height: 100px;
    font-size: 16px;
    resize: vertical;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    -webkit-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    transition: all 200ms ease;
    box-shadow: none;
}
.contact-form .form-group .submit-btn {
    position: relative;
    border-radius: 6px;
    color: #fff;
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 24px;
    margin-top: 15px;
    background-color: #2E90FF;
    border: 1px solid #2E90FF;
    -webkit-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    -moz-transition: all 300ms ease;
    transition: all 200ms ease;
    box-shadow: none;
    cursor: pointer;
}
.contact-form .form-group .submit-btn:hover {
    background-color: #1e42b8;
    color: #fff;
    border-color: #1e42b8;
    box-shadow: none;
}
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: red !important;
}
.contact-form label.error {
    display: block;
    line-height: 24px;
    padding: 5px 0 0;
    margin: 0;
    text-transform: uppercase;
    font-size: 12px;
    color: red;
    font-weight: 500;
}
.map-data {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8em;
}
.map-data h6 {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    color: #121212;
}
.map-canvas {
    height: 450px;
}
.map-section {
    position: relative;
    padding: 0;
    opacity: 0;
    animation: map-fade-in 0.8s ease-out forwards;
}
@keyframes map-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.map-section .container {
    max-width: 1200px;
}
.map-section .map-outer {
    max-width: 75%;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    box-shadow: none;
}
.map-section .map-outer iframe {
    display: block;
    width: 100%;
    height: 262px;
}

/* İletişim sayfası: harita tam genişlik ve doğru yükseklik */
.contact-page-section .map-section {
    padding-left: 0;
    padding-right: 0;
}
.contact-page-section .map-section .map-outer {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 14px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    box-shadow: none;
}
.contact-page-section .map-section .map-outer iframe {
    height: 450px !important;
}
/* Mobil ve tablet cihazlarda harita tam genişlikte */
@media only screen and (max-width: 1024px) {
    .map-section .map-outer {
        max-width: 100%;
    }
}
.map-section .google-map {
    height: 790px;
}

