@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fira+Code:wght@300..700&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* ======= RESET ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f4f4;
}

*:not(i) {
    font-family: 'Be Vietnam Pro', sans-serif;
}

ul {
    list-style: none;
}

/* Tạo mũi tên tùy chỉnh cho Firefox */
@-moz-document url-prefix() {
    select {
        background-image: none;
        padding-right: 2.5rem;
    }
}

/* Tùy chỉnh cho IE11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    select {
        padding-right: 2.5rem;
    }
    .pointer-events-none {
        display: none;
    }
}

/* a:hover {
    text-decoration: underline;
} */

/* textarea { */
/* resize: none; */
/* height: 100px; */
/* } */

/* hidden scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* ======= LOADING SCREEN ======= */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

/* ======= HOME ======= */

/* ======= BANNER ======= */
.banner {
    position: relative;
    width: 100%;
    min-height: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    /* margin-bottom: 36px; */
}

.background {
    position: absolute;
    inset: 0;
    background: no-repeat center/cover;
    /* filter: blur(10px); */
    z-index: -1;
}

.background::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.5); */
}

.banner-content {
    display: flex;
    width: 80%;
    max-width: 1200px;
    align-items: center;
}

.banner-details {
    flex: 1;
    margin-left: 100px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.banner-details h2 {
    font-size: 32px;
}

.description {
    font-size: 18px;
    margin: 10px 0;
    line-height: 2;
}

.banner-image {
    margin-bottom: 12px;
}

.banner-image img {
    width: 500px;
    border-radius: 10px;
}

/* ======= TITLE ======= */
.title h1 {
    font-size: 44px;
    text-align: center;
    /* margin: 32px 0; */
    font-weight: 700;
}

/* ======= LAYOUT: FORM & MAP ======= */
.container {
    /* display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 60% !important;
    margin: 50px auto;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden; */
    /* height: 80vh; */
    max-width: 100% !important;
}

.map-section {
    width: 60%;
    height: 100%;
    transition: all 0.3s ease;
}

.form-section {
    flex: 1;
    /* padding: 40px !important; */
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hidden {
    display: none !important;
}

/* ======= RADIO GROUP ======= */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0px;
}

.form-section #location-btn {
    margin-bottom: 20px;
}

/* ======= TYPOGRAPHY ======= */
/* .form-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
} */

/* ======= FORM ELEMENTS ======= */
.form-section form {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    /* width: 300px; */
    /* margin: auto; */
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px 35px 10px 10px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
}

.input-group select {
    appearance: none;
}

.input-group i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-group:first-child {
    display: flex;
    justify-content: space-between;
}

.input-group:first-child input {
    width: 100%;
}

/* ======= BUTTONS ======= */
.form-section button {
    /* width: 100%; */
    /* padding: 12px; */
    /* background: #004aad; */
    /* color: white; */
    /* font-size: 16px; */
    /* border: none; */
    /* border-radius: 5px; */
    /* cursor: pointer; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
}

/* .action-buttons button:hover {
    background: #3aa4e1;
} */

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons button {
    width: 100%;
    padding: 12px;
    /* background: #004aad; */
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.register-btn i {
    margin-left: 10px;
}

/* ======= MISC ======= */
.registration {
    text-align: center;
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

/* ======= FOOTER ======= */
footer {
    background: linear-gradient(to right, #111a3b, #154d73d0);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-column p,
.footer-column ul li {
    margin: 5px 0;
    text-align: left;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-column iframe {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
}

.social-icons {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.social-icons a img {
    width: 30px;
    margin-right: 10px;
    border-radius: 4px;
    transition: 0.3s;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ======= DETAILS COMPONENT ======= */
/* .details {
    margin: 20px auto 80px;
    font-size: 38px;
    font-weight: 300;
    text-align: center;
    letter-spacing: 2px; 
} */

details {
    width: 60% !important;
    line-height: 2;
    /* max-width: 700px; */
    margin: 0 auto;
    padding: 30px 55px 30px 30px;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s;
    text-align: justify;
}

details + details {
    margin-top: 20px;
}

details[open] {
    background-color: #f6f7f8;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
}

/* details p {
    color: #96999d;
    font-weight: 300;
    margin-top: 20px;
} */

summary {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-size: 22px;
}

summary:focus {
    outline: none !important;
}

summary::-webkit-details-marker {
    display: none !important;
}

.control-icon {
    fill: #004aad;
    transition: 0.3s ease;
    pointer-events: none;
}

.control-icon-close {
    display: none;
}

details[open] .control-icon-close {
    display: initial;
}

details[open] .control-icon-expand {
    display: none;
}

/* ======= HOTLINE & ZALO ICON ======= */
.hotline-icon,
.zalo-icon {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    cursor: pointer;
}

.hotline-icon {
    bottom: 80px;
}

.zalo-icon {
    bottom: 20px;
}

.hotline-icon img,
.zalo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Hiệu ứng sóng lan tỏa */
.hotline-icon::before,
.zalo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(0, 162, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 1.5s infinite ease-out;
}

.hotline-icon::before {
    background: #ffa600a3;
}

/* ======= LOADING SCREEN ======= */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in + zoom modal container */
@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade out */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.modal-enter {
    animation: fadeZoomIn 0.3s ease-out forwards;
}

.modal-exit {
    animation: fadeOut 0.2s ease-in forwards;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

#import-modal {
    transition: opacity 0.3s ease-in-out;
}

.loading-submit {
    display: flex; /* Ẩn ban đầu */
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: absolute;
    background: #000;
    opacity: 0.5;
    top: 0;
    left: 0;
}

.loading-submit i {
    animation: spin 0.8s linear infinite;
    color: #f3f3f3;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1200px) {
    .banner-content {
        width: 90%;
    }

    /* .container {
        width: 90% !important;
    } */

    .footer-container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-details {
        margin-left: 0;
        margin-bottom: 30px;
        align-items: center;
    }

    .banner-image img {
        width: 400px;
    }

    .container {
        /* flex-direction: column; */
        height: auto;
    }

    .map-section {
        width: 100%;
        height: 400px;
    }

    .form-section {
        width: 100%;
        padding: 30px;
    }

    form {
        width: 100%;
        /* max-width: 500px; */
    }

    .details {
        width: 90% !important;
    }
}

@media (max-width: 768px) {
    .banner {
        min-height: 400px;
    }

    .banner-image img {
        width: 300px;
    }

    .banner-details h2 {
        font-size: 28px;
    }

    .description {
        font-size: 16px;
    }

    .title h1 {
        font-size: 40px;
    }

    .footer-column {
        min-width: 200px;
    }

    .details {
        padding: 30px 40px 30px 25px;
        font-size: 18px;
    }

    summary {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .banner {
        min-height: 300px;
    }

    .banner-image img {
        width: 250px;
    }

    .banner-details h2 {
        font-size: 24px;
    }

    .description {
        font-size: 14px;
    }

    .title h1 {
        font-size: 32px;
    }

    .details {
        width: 90% !important;
        padding: 20px 30px 20px 15px;
        font-size: 16px;
    }

    summary {
        font-size: 18px;
    }

    .hotline-icon,
    .zalo-icon {
        width: 40px;
        height: 40px;
    }

    .hotline-icon {
        bottom: 70px;
    }

    .zalo-icon {
        bottom: 15px;
    }
}
