/* ============================================================
   Kan Themes — İletişim Sayfası Redesign
   app.min.css'ten SONRA yüklenir; yalnızca page-templates/contact.php.
   Tokenlar temadan: --primary, --kan-font-family, .container/.row/.col
   CF7 işaretlemesi: .wpcf7 > form.wpcf7-form > .row > .col > .form-row
   ============================================================ */

:root {
    --contact-text: #18191d;
    --contact-muted: #6b7280;
    --contact-border: rgba(17, 24, 39, 0.10);
    --contact-field: #f6f7f9;
    --contact-soft: #fafafa;
    --contact-radius: 18px;
    --contact-whatsapp: #128c4a;
}

/* ---- Hero ---- */
.page-template-contact #page-header {
    padding-bottom: 170px;
}

.page-template-contact #page-header .contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(6px);
}
.page-template-contact #page-header .contact-eyebrow i {
    font-size: 12px;
    opacity: .8;
}

/* ---- Kart ---- */
.page-template-contact section#contact-form.contact-card {
    position: relative;
    z-index: 2;
    margin: -11em 0 80px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius);
    box-shadow: 0 40px 80px -40px rgba(17, 24, 39, 0.35), 0 2px 6px rgba(17, 24, 39, 0.04);
    overflow: hidden;
    font-family: var(--kan-font-family, "Inter", sans-serif);
}

.contact-card-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
}

/* ---- Sol: kanallar ---- */
.contact-aside {
    padding: 44px 36px;
    background: var(--contact-soft);
    border-right: 1px solid var(--contact-border);
    display: flex;
    flex-direction: column;
}

.contact-aside-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--contact-text);
}

.contact-aside-text {
    margin: 0 0 28px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--contact-muted);
}

.contact-channels {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 20px;
}

.contact-channels li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-channels strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--contact-muted);
    margin-bottom: 2px;
}

.contact-channels a {
    font-size: 15px;
    font-weight: 700;
    color: var(--contact-text);
    word-break: break-word;
    transition: color .2s;
}
.contact-channels a:hover {
    color: var(--primary);
}

.contact-channel-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--contact-border);
    color: var(--primary);
    font-size: 16px;
}

/* Hızlı bağlantılar */
.contact-quick {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--contact-border);
    display: grid;
    gap: 10px;
}

.contact-quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--contact-border);
    color: var(--contact-text);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.contact-quick-link:hover {
    color: var(--contact-text);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -16px rgba(17, 24, 39, 0.35);
}

.contact-quick-link .contact-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(212, 24, 24, 0.08);
    border: 0;
}

.contact-quick-link strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.contact-quick-link small {
    display: block;
    font-size: 13px;
    color: var(--contact-muted);
}

.contact-quick-arrow {
    margin-left: auto;
    font-size: 12px;
    color: var(--contact-muted);
    transition: transform .2s, color .2s;
}
.contact-quick-link:hover .contact-quick-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

.contact-quick-link.is-whatsapp .contact-channel-icon {
    background: rgba(18, 140, 74, 0.10);
    color: var(--contact-whatsapp);
    font-size: 19px;
}
.contact-quick-link.is-whatsapp:hover {
    border-color: var(--contact-whatsapp);
}
.contact-quick-link.is-whatsapp:hover .contact-quick-arrow {
    color: var(--contact-whatsapp);
}

/* ---- Sağ: form ---- */
.contact-form-wrap {
    padding: 44px 44px 40px;
    min-width: 0;
}

.contact-form-head {
    margin-bottom: 28px;
}
.contact-form-head h3 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--contact-text);
}
.contact-form-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--contact-muted);
}

.page-template-contact section#contact-form .wpcf7 {
    width: 100%;
}

.page-template-contact section#contact-form .wpcf7-form > .row {
    row-gap: 18px;
}

.page-template-contact section#contact-form .wpcf7-form p {
    margin: 0;
}

/* CF7'nin label içine koyduğu <br> boşluğunu kaldır */
.page-template-contact section#contact-form .form-row label br {
    display: none;
}

.page-template-contact section#contact-form .form-row label {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--contact-text);
    opacity: 1;
}

.page-template-contact section#contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.page-template-contact section#contact-form .wpcf7-form-control:not(.wpcf7-submit) {
    display: block;
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--contact-text);
    background: var(--contact-field);
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: none;
    outline: 0;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.page-template-contact section#contact-form .wpcf7-form-control:not(.wpcf7-submit):hover {
    border-color: var(--contact-border);
}

.page-template-contact section#contact-form .wpcf7-form-control:not(.wpcf7-submit):focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 24, 24, 0.10);
}

.page-template-contact section#contact-form textarea.wpcf7-form-control {
    min-height: 170px;
    resize: vertical;
}

/* Turnstile + gönder satırı */
.page-template-contact section#contact-form .cf7-cf-turnstile {
    margin: 4px 0 0 !important;
}
.page-template-contact section#contact-form .wpcf7-form > .row > .col-12:last-child br {
    display: none;
}

.page-template-contact section#contact-form .wpcf7-submit {
    margin-top: 8px;
    width: auto;
    min-width: 180px;
    min-height: 50px;
    padding: 13px 28px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: #fff !important;
}
.page-template-contact section#contact-form .wpcf7-submit:hover {
    opacity: .92;
}

.page-template-contact section#contact-form .wpcf7-spinner {
    vertical-align: middle;
    margin-left: 12px;
}

/* Doğrulama + yanıt mesajları */
.page-template-contact section#contact-form .wpcf7-not-valid {
    border-color: var(--danger, #B30000) !important;
    background: #fff;
}
.page-template-contact section#contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--danger, #B30000);
}

.page-template-contact section#contact-form .wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    border-width: 1px;
    font-size: 14px;
}
.page-template-contact section#contact-form .wpcf7 form.init .wpcf7-response-output {
    display: none;
}
.page-template-contact section#contact-form .wpcf7 form.sent .wpcf7-response-output {
    background: rgba(3, 148, 6, 0.06);
    border-color: rgba(3, 148, 6, 0.35);
    color: var(--success, #039406);
}
.page-template-contact section#contact-form .wpcf7 form.invalid .wpcf7-response-output,
.page-template-contact section#contact-form .wpcf7 form.failed .wpcf7-response-output,
.page-template-contact section#contact-form .wpcf7 form.spam .wpcf7-response-output,
.page-template-contact section#contact-form .wpcf7 form.unaccepted .wpcf7-response-output {
    background: rgba(179, 0, 0, 0.05);
    border-color: rgba(179, 0, 0, 0.30);
    color: var(--danger, #B30000);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .contact-card-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        order: -1;
    }
    .contact-aside {
        border-right: 0;
        border-top: 1px solid var(--contact-border);
    }
}

@media (max-width: 640px) {
    .page-template-contact section#contact-form.contact-card {
        margin-bottom: 48px;
        border-radius: 16px;
    }
    .contact-form-wrap,
    .contact-aside {
        padding: 28px 20px;
    }
    .contact-form-head h3 {
        font-size: 22px;
    }
    .page-template-contact section#contact-form .wpcf7-submit {
        width: 100%;
    }
}
