﻿.contact-section {
    padding: 70px 0;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.contact-description {
    font-size: 1rem;
    color: #6c757d;
}

.info-icon {
    color: #4A792E;
    font-size: 1.25rem;
    margin-right: 12px;
}

.info-text {
    font-size: 1.25rem;
    color: #212529;
}

.form-control {
    border-radius: 30px;
    padding: 12px 20px;
    border: 1px solid #ced4da;
    font-size: 1.1rem;
}

    .form-control:focus {
        border-color: #4A792E;
        box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
    }

.btn-send {
    background-color: #4A792E;
    border: none;
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 1.1rem;
}

    .btn-send:hover {
        background-color: #157347;
    }

/* ===== Carousel hero & map tweaks ===== */
.hero-slide {
    background-size: cover;
    background-position: center;
    width: 100%;
    aspect-ratio: 6/1;
    background: linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25)), url('/img/lien-he.jpg') center/cover no-repeat;
    padding: 40px 0;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.95;
}

/* Map slide */
.map-slide {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

    .map-slide iframe {
        width: 100%;
        height: 100%;
        border-radius: 6px;
    }

/* Ẩn điều khiển carousel nếu chỉ 1 slide muốn gọn (nếu muốn ẩn, thêm class .hide-controls) */
.hide-controls .carousel-control-prev,
.hide-controls .carousel-control-next {
    display: none;
}

/* Full-width map strip */
.map-fullwidth-section {
    width: 100%;
}

.map-fullwidth-wrapper {
    background: #f8f9fa;
}

.invalid-feedback {
    display: block;
    margin-top: .35rem;
    font-size: .95rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.map-ratio {
    height: 60vh; /* mặc định màn hình lớn */
    min-height: 320px; /* chống case vh quá nhỏ */
}

    /* Iframe phải hiển thị block và ăn theo chiều cao cha */
    .map-ratio iframe {
        display: block;
        width: 100%;
        height: 100%;
        min-height: inherit;
        border: 0;
    }

/* Bóp gọn padding/bo góc khi ở mobile để chiếm tối đa không gian hiển thị */
@media (max-width: 576px) {
    .map-ratio {
        height: 50vh;
        min-height: 260px;
    }

    .map-slide {
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .map-fullwidth-section,
    .map-fullwidth-wrapper {
        overflow: visible !important;
    }

    /* Nếu trong .cshtml có lỡ dùng d-none d-sm-block để ẩn map ở mobile
     thì class dưới sẽ cưỡng bức hiển thị: */
    .map-visible-sm {
        display: block !important;
    }
}
