﻿/* --- VARIABLES --- */
:root {
    --bg-cream: #FCF5EF;
    --brown-dark: #4B3022;
    --brown-light: #8D6E63;
    --gold: #FFD700;
    --white: #ffffff;
    --text-gray: #666;
    --shadow-card: 0 15px 35px rgba(75, 48, 34, 0.1);
}

/* --- REUSE HERO (Giữ nguyên phần này để đồng bộ header) --- */
#intro-picture {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.introSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.title-cheese {
    text-wrap: nowrap;
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: clamp(40px, 7vw, 100px);
    color: white;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.5s;
    display: flex;
    gap: 0;
}

    .title-cheese span {
        display: inline-block;
        text-shadow: 0 4px 30px rgba(0,0,0,0.5);
        animation: jumpDiscrete 6s ease-in-out infinite;
    }

    .title-cheese:after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        height: 4px;
        width: 60%;
        background: var(--gold);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
        animation: expandLine 1s ease-out forwards 1.2s;
    }

.subtitle-cheese {
    font-family: "Pacifico", cursive;
    font-weight: bold;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -20%);
    z-index: 100;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: clamp(18px, 2vw, 30px);
    width: 100%;
    text-align: center;
    animation: subtitleAppear 1s ease-out forwards 1.8s;
    opacity: 0;
}

/* KEYFRAMES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes expandLine {
    from {
        width: 0%;
    }

    to {
        width: 60%;
    }
}

@keyframes jumpDiscrete {
    0%, 100% {
        transform: translateY(0);
    }

    2% {
        transform: translateY(-20px);
        color: var(--gold);
    }

    4% {
        transform: translateY(0);
        color: white;
    }
}

@keyframes subtitleAppear {
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* --- CONTACT SECTION CHÍNH --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-cream);
    min-height: 800px;
}

    .contact-section .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.c-title {
    font-family: "Allura", cursive;
    font-size: 5rem;
    color: var(--brown-dark);
    margin-bottom: 10px;
    line-height: 1;
}

.c-desc {
    font-family: "Kanit", sans-serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.divider-img {
    height: 30px;
    opacity: 0.6;
}

/* LAYOUT 2 CỘT (FLEXBOX) */
.contact-wrapper {
    display: flex;
    gap: 40px; /* Khoảng cách giữa 2 hộp trắng */
    justify-content: center;
    align-items: stretch; /* Căn lề trên */
    flex-wrap: wrap; /* Tự xuống dòng trên mobile */
}

/* --- 1. CỘT INFO (BÊN TRÁI) --- */
    .contact-wrapper .contact-info {
        flex: 1;
        min-width: 350px;
        background: var(--white);
        padding: 50px;
        border-radius: 30px;
        box-shadow: var(--shadow-card);
        position: relative;
        overflow: hidden;
        /* THÊM CÁC DÒNG NÀY */
        display: flex;
        flex-direction: column; /* Xếp dọc nội dung */
        justify-content: flex-start;
    }

/* Đảm bảo từng item chiếm hết chiều ngang để không bị đẩy lên cùng hàng */
.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-start;
    width: 100%; /* Chiếm full chiều rộng */
}

/* Các phần còn lại giữ nguyên... */

/* Trang trí tiêu đề info */
.info-title {
    font-family: "Pacifico", cursive;
    color: var(--brown-dark);
    font-size: 2.2rem;
    margin-bottom: 40px;
    line-height: 1.3;
    position: relative;
}

/* Vệt vàng trang trí dưới góc trái (giống hình mẫu) */
.contact-info::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 50px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-start;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--bg-cream); /* Nền icon màu kem */
    color: var(--brown-dark);
    border-radius: 50%; /* Tròn */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0; /* Không bị co lại */
    transition: 0.3s;
}

.info-item:hover .icon-box {
    background: var(--brown-dark);
    color: var(--gold);
}

.info-content h4 {
    margin: 0 0 5px 0;
    font-family: "Kanit";
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brown-dark);
}

.info-content p {
    margin: 0;
    color: var(--text-gray);
    font-family: "Kanit";
    font-size: 1rem;
    line-height: 1.6;
}

/* Bản đồ */
.map-frame {
    border-radius: 20px;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    /* THÊM CÁC DÒNG NÀY ĐỂ BẢN ĐỒ DÃN RA */
    flex-grow: 1; /* Tự động chiếm hết khoảng trống còn lại */
    display: flex; /* Để thẻ iframe bên trong hiển thị full */
    height: 300px;
}

    /* Thêm style cho iframe bên trong bản đồ */
    .map-frame iframe {
        width: 100%;
        height: 100% !important; /* Bắt buộc chiều cao 100% theo khung cha */
        border: 0;
    }

/* --- 2. CỘT FORM (BÊN PHẢI) --- */
.contact-form-box {
    flex: 1.2; /* Form rộng hơn info một chút */
    min-width: 350px;
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-card);
}

.form-title {
    font-family: "Pacifico", cursive;
    color: var(--brown-dark);
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
    /* Gạch chân vàng dưới tiêu đề form */
    .form-title::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 50px;
        height: 4px;
        background: var(--gold);
        border-radius: 2px;
    }

.form-group {
    margin-bottom: 25px;
}

/* Input bo tròn (Pill) giống hình mẫu */
.form-control {
    width: 100%;
    padding: 15px 25px;
    border: 1px solid #eee; /* Viền rất nhạt */
    border-radius: 50px; /* Bo tròn hoàn toàn */
    background: #fcfcfc;
    font-family: "Kanit";
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--brown-dark);
    box-sizing: border-box; /* Quan trọng để padding không làm vỡ layout */
}

/* Textarea bo góc nhỏ hơn chút */
textarea.form-control {
    border-radius: 25px;
    resize: none;
    height: 150px;
}

.form-control:focus {
    background: #fff;
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-control::placeholder {
    color: #ccc;
    font-weight: 300;
}

.text-danger {
    font-size: 0.85rem;
    color: #ff6b81;
    margin-left: 20px;
    margin-top: 5px;
    display: block;
}

/* Nút Gửi */
.btn-send {
    background: var(--brown-dark);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: "Kanit";
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(75, 48, 34, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-send:hover {
        background: var(--brown-light);
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(75, 48, 34, 0.3);
    }

.alert-success {
    background: rgba(111, 180, 144, 0.15);
    color: #2d5a40;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-family: "Kanit";
    display: flex;
    align-items: center;
    gap: 10px;
}

/* UTILS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .fade-up.active {
        opacity: 1;
        transform: translateY(0);
    }

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.4s;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column; /* Xếp chồng lên nhau trên mobile/tablet */
    }

    .contact-info, .contact-form-box {
        width: 100%; /* Full width */
        min-width: auto;
    }

    .c-title {
        font-size: 3.5rem;
    }
}
