/* ═══════════════════════════════════════════════
   Contact Page — MK Kredit
   ═══════════════════════════════════════════════ */

/* ── Title ── */
.contact-section .contact-info-title {
    padding-bottom: 30px;
}

/* ── Location Tabs (wrapping grid, no horizontal scroll) ── */
.contact-locations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.contact-locations-grid .loc-btn {
    padding: 10px 20px;
    border: 1px solid rgba(24, 0, 71, 0.15);
    border-radius: 50px;
    background: #fff;
    color: #180047;
    font-family: 'NotoSans-Medium', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* butoanele au devenit linkuri (/contact/{oras}) — păstrăm aspectul de buton */
    display: inline-block;
    text-decoration: none;
    line-height: normal;
}

.contact-locations-grid .loc-btn:focus,
.contact-locations-grid .loc-btn:active {
    text-decoration: none;
}

.contact-locations-grid .loc-btn:hover {
    border-color: #2958d9;
    color: #2958d9;
    background: rgba(41, 88, 217, 0.04);
}

.contact-locations-grid .loc-btn.active {
    background: #2958d9;
    color: #fff;
    border-color: #2958d9;
}

/* ── Main Layout (info left, map right) ── */
.contact-main {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    margin-bottom: 48px;
    min-height: 450px;
}

/* ── Location Info Card ── */
.contact-loc-info {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 20px rgba(24, 0, 71, 0.06);
    border: 1px solid rgba(24, 0, 71, 0.06);
    display: flex;
    flex-direction: column;
}

.contact-loc-info .loc-name {
    font-family: 'NotoSans-Bold', sans-serif;
    font-size: 22px;
    color: #180047;
    margin: 0 0 6px;
}

.contact-loc-info .loc-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2958d9;
    background: rgba(41, 88, 217, 0.08);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
    align-self: flex-start;
}

.contact-loc-info .loc-divider {
    height: 1px;
    background: rgba(24, 0, 71, 0.08);
    margin: 0 0 20px;
}

.contact-loc-info .loc-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-loc-info .loc-detail:last-child {
    margin-bottom: 0;
}

.contact-loc-info .loc-detail-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(41, 88, 217, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2958d9;
    font-size: 15px;
}

.contact-loc-info .loc-detail-content {
    flex: 1;
}

.contact-loc-info .loc-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 2px;
    font-family: 'NotoSans-Medium', sans-serif;
}

.contact-loc-info .loc-detail-value {
    font-size: 14px;
    color: #180047;
    line-height: 1.5;
}

.contact-loc-info .loc-detail-value a {
    color: #180047;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-loc-info .loc-detail-value a:hover {
    color: #2958d9;
}

/* ── Map Container ── */
.contact-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    background: #f0f2f5;
    position: relative;
    min-height: 450px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    z-index: 2;
    transition: opacity 0.3s;
}

.contact-map-wrapper iframe.loading {
    opacity: 0;
}

/* ── Map Skeleton Loader ── */
.map-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #e9ecef;
    overflow: hidden;
}

.map-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: skeletonShimmer 1.5s infinite;
}

.map-skeleton-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(41, 88, 217, 0.1);
}

.map-skeleton-roads {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 80%;
    height: 3px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
}

.map-skeleton-roads::before {
    content: '';
    position: absolute;
    top: 60px;
    left: -5%;
    width: 60%;
    height: 3px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    transform: rotate(-15deg);
}

.map-skeleton-roads::after {
    content: '';
    position: absolute;
    top: -40px;
    left: 20%;
    width: 3px;
    height: 120px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
}

@keyframes skeletonShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Contact Form Section ── */
.contact-info-form-section {
    padding: 0 0 100px 0;
}

.contact-form-section {
    margin-top: 16px;
}

.contact-form-section .contact-form-wrapper {
    border-radius: 24px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .contact-main {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-map-wrapper {
        min-height: 350px;
    }

    .contact-loc-info {
        order: 2;
    }

    .contact-map-wrapper {
        order: 1;
    }
}

@media (max-width: 767px) {
    .contact-locations-grid .loc-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .contact-map-wrapper {
        min-height: 280px;
    }

    .contact-loc-info {
        padding: 24px;
    }

    .contact-loc-info .loc-name {
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .contact-info-form-section {
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .contact-locations-grid .loc-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .contact-map-wrapper {
        min-height: 220px;
    }

    .contact-loc-info {
        padding: 20px;
    }
}
