/* İletişim sayfası */
.by-contact-sayfa {
    --by-contact-primary: var(--primary, #316dff);
    --by-contact-dark: #192273;
}

/* Uyarılar */
.by-contact-sayfa .by-contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 15px;
    line-height: 1.5;
}

.by-contact-sayfa .by-contact-alert i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.by-contact-sayfa .by-contact-alert--success {
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.by-contact-sayfa .by-contact-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Sol bilgi kartları */
.by-contact-sayfa .contact-details a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.by-contact-sayfa .contact-details a:hover {
    color: var(--by-contact-primary);
}

.by-contact-sayfa .contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.by-contact-sayfa .contact-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: var(--light, #f5f8ff);
    color: var(--by-contact-primary);
    font-size: 1.05rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.by-contact-sayfa .contact-social-links a:hover {
    background: var(--by-contact-primary);
    color: #fff;
}

/* Form kartı */
.by-contact-sayfa .by-contact-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 2rem;
    height: 100%;
}

.by-contact-sayfa .by-contact-card-head {
    margin-bottom: 1.75rem;
}

.by-contact-sayfa .by-contact-kicker {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--by-contact-primary);
    background: rgba(49, 109, 255, 0.1);
}

.by-contact-sayfa .by-contact-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--by-contact-dark);
    line-height: 1.3;
}

.by-contact-sayfa .by-contact-card-desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #6b7280;
}

.by-contact-sayfa .by-contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.by-contact-sayfa .by-contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.by-contact-sayfa .by-contact-required {
    color: #dc2626;
}

.by-contact-sayfa .by-contact-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.by-contact-sayfa .by-contact-input::placeholder {
    color: #9ca3af;
}

.by-contact-sayfa .by-contact-input:focus {
    outline: none;
    border-color: var(--by-contact-primary);
    box-shadow: 0 0 0 3px rgba(49, 109, 255, 0.15);
}

.by-contact-sayfa .by-contact-field {
    min-width: 0;
    max-width: 100%;
}

/* Mobilde type=date native kontrolü taşmasın */
.by-contact-sayfa input[type="date"].by-contact-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.by-contact-sayfa input[type="date"].by-contact-input::-webkit-date-and-time-value {
    text-align: left;
    min-width: 0;
}

.by-contact-sayfa input[type="date"].by-contact-input::-webkit-calendar-picker-indicator {
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.by-contact-sayfa .by-contact-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Randevu — ülke seçimi */
.by-contact-sayfa .appointment-country-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.by-contact-sayfa .appointment-country-select {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    background-color: #fff;
}

.by-contact-sayfa .appointment-country-other-wrap.is-hidden {
    display: none;
}

.by-contact-sayfa .appointment-country-input__flag.is-hidden,
.by-contact-sayfa .appointment-country-input__icon.is-hidden {
    display: none;
}

/* Randevu — ülke input (bayrak + IP ülke adı) */
.by-contact-sayfa .appointment-country-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.35rem 0.35rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
}

.by-contact-sayfa .appointment-country-input__flag {
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.by-contact-sayfa .appointment-country-input__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--by-contact-primary);
    flex-shrink: 0;
}

.by-contact-sayfa .appointment-country-input__field {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    font-weight: 600;
    color: var(--by-contact-dark);
    cursor: default;
}

.by-contact-sayfa .appointment-country-input__field:focus {
    outline: none;
    box-shadow: none !important;
}

.by-contact-sayfa .by-contact-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.by-contact-sayfa .by-contact-consents {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.by-contact-sayfa .by-contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.by-contact-sayfa .by-contact-consent__input {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    accent-color: var(--by-contact-primary);
    cursor: pointer;
}

.by-contact-sayfa .by-contact-consent__label {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #374151;
    cursor: pointer;
}

.by-contact-sayfa .by-contact-consent__label a {
    color: var(--by-contact-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.by-contact-sayfa .by-contact-consent__label a:hover {
    color: var(--by-contact-primary);
}

.by-contact-sayfa .contact-working-hours {
    margin: 0;
    line-height: 1.7;
    color: #4b5563;
}

.by-contact-sayfa .by-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--by-contact-primary);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.by-contact-sayfa .by-contact-submit:hover {
    background: #2558d9;
    box-shadow: 0 6px 20px rgba(49, 109, 255, 0.3);
    transform: translateY(-1px);
}

.by-contact-sayfa .by-contact-submit i {
    font-size: 0.9rem;
}

/* Alt satır — telefon numaraları */
.by-contact-sayfa .contact-phones-row {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
}

.by-contact-sayfa .contact-phones-row__head {
    margin-bottom: 1.5rem;
}

.by-contact-sayfa .contact-phones-row__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--by-contact-dark);
}

.by-contact-sayfa .contact-phones-row__lead {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6b7280;
}

.by-contact-sayfa .contact-phone-tile {
    height: 100%;
    padding: 1.125rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.by-contact-sayfa .contact-phone-tile:hover {
    border-color: rgba(49, 109, 255, 0.25);
    box-shadow: 0 4px 18px rgba(49, 109, 255, 0.08);
}

.by-contact-sayfa .contact-phone-tile__country {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.by-contact-sayfa .contact-phone-tile__flag {
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.by-contact-sayfa .contact-phone-tile__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--by-contact-dark);
}

.by-contact-sayfa .contact-phone-tile__phone {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.by-contact-sayfa .contact-phone-tile__phone:hover {
    color: var(--by-contact-primary);
}

.by-contact-sayfa .contact-phone-tile__wa {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #16a34a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.by-contact-sayfa .contact-phone-tile__wa:hover {
    color: #15803d;
}

/* Harita — anasayfa ile aynı interaktif harita */
.by-contact-sayfa + .harita-section--iletisim-sayfa {
    border-top: 1px solid var(--gray-200, #e7e7e7);
}

.by-contact-sayfa + .harita-section--iletisim-sayfa.harita-section--devredin {
    padding-top: 3rem;
}

@media (min-width: 768px) {
    .by-contact-sayfa + .harita-section--iletisim-sayfa.harita-section--devredin {
        padding-top: 4rem;
    }
}

/* Eski iframe harita (randevu vb.) */
.by-contact-sayfa + .contact-map iframe,
.contact-map iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
}

@media (max-width: 991.98px) {
    .by-contact-sayfa .by-contact-card {
        padding: 1.5rem;
    }

    .by-contact-sayfa .contact-phones-row {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .contact-map iframe {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .by-contact-sayfa .by-contact-card {
        padding: 1.25rem;
        overflow-x: hidden;
    }

    .by-contact-sayfa .by-contact-card-title {
        font-size: 1.3rem;
    }

    .by-contact-sayfa .by-contact-form .row > [class*="col-"] {
        min-width: 0;
        max-width: 100%;
    }

    .by-contact-sayfa input[type="date"].by-contact-input {
        font-size: 16px;
        padding: 0.7rem 0.75rem;
        line-height: 1.35;
    }
}
