﻿.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Đảm bảo wrapper chiếm toàn bộ chiều cao viewport */
    justify-content: space-between; /* Đẩy header và footer ra hai đầu */
    background-color: #f0f2f5;
    font-family: 'Sora';
    overflow-y: hidden;
}

/* Header and Logo */
.header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-top: 20px;
    box-sizing: border-box;
    height: 10vh; /* Giữ chiều cao 10vh */
    flex-shrink: 0; /* Đảm bảo header không bị co lại */
}

.logo {
    height: 150px;
    margin-left: 50px;
}

/* Main Content Area */
.main-content {
    flex-grow: 1; /* Rất quan trọng để nó lấp đầy không gian giữa header và footer */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-y: auto; /* Giữ scrollbar cho main-content nếu nội dung quá lớn */
}

.form-box {
    background: white;
    padding: 30px 60px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.title {
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 18px;
}

/* Buttons Styling */
.buttons {
    gap: 20px;
}

.btn {
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .btn.green {
        background-color: #22c55e;
    }

        .btn.green:hover {
            background-color: #16a34a;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        }

    .btn.blue {
        background-color: #3b82f6;
    }

        .btn.blue:hover {
            background-color: #2563eb;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        }

/* Footer Section */
.footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px 20px 40px;
    box-sizing: border-box;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Điều chỉnh padding cho các box bên trong footer nếu cần */
.info-box, .map-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    padding-bottom: 25px;
}
    .info-box p a {
        color: #3b82f6; /* Lấy màu xanh của nút Sông Bung 4 */
        text-decoration: none; /* Bỏ gạch chân mặc định */
        font-weight: 500; /* Hơi đậm hơn chữ thường một chút */
        transition: color 0.2s ease; /* Thêm hiệu ứng chuyển màu mượt */
    }

        /* Thêm gạch chân và đổi màu khi di chuột vào */
        .info-box p a:hover {
            color: #2563eb; /* Màu xanh đậm hơn khi hover (giống hover của nút) */

        }
.info-box {
    padding: 25px 30px 25px 30px;
    width: 380px;
}

    .info-box h4 {
        color: #f59e0b;
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 19px;
    }

    .info-box p {
        color: #4b5563;
        margin: 10px 0;
        font-size: 15.5px;
        line-height: 1.4;
    }

.map-box {
    padding: 15px 15px 15px 15px;
}

    .map-box iframe {
        border-radius: 10px;
        display: block;
        width: 350px;
        height: 250px;
    }

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 992px) {
    .wrapper {
        overflow-y: auto; /* Cho phép cuộn trên các thiết bị nhỏ hơn */
    }

    /* Stack các mục trong footer theo chiều dọc */
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 25px; /* Thêm khoảng cách giữa info-box và map-box */
        padding: 20px;
    }

    /* Điều chỉnh lại chiều rộng của các box trong footer */
    .info-box {
        width: 100%;
        max-width: 500px; /* Giới hạn chiều rộng tối đa */
        text-align: center;
    }

    .map-box iframe {
        width: 100%;
        max-width: 500px;
        height: 300px;
    }
}


/* ------- Cho Điện thoại di động - dưới 600px ------- */
@media (max-width: 600px) {
    .header {
        margin-bottom: 20px;
    }
    .green {
        margin-bottom: 10px;
    }
    .logo {
        height: 55px;
        margin-left: 20px;
    }

    /* Thu nhỏ padding của form chính */
    .form-box {
        padding: 25px 20px;
        width: 90%;
    }

    /* Stack các nút theo chiều dọc */
    .buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%; /* Cho các nút chiếm toàn bộ chiều rộng */
    }

    .footer {
        padding: 15px;
    }

    /* Giảm kích thước chữ và padding cho gọn gàng hơn */
    .info-box {
        padding: 20px;
    }

        .info-box h4 {
            font-size: 18px;
        }

        .info-box p {
            font-size: 14px;
        }

    .map-box iframe {
        height: 250px;
    }
}
