/* ======= Biến CSS ======= */
:root {
    --primary-color: rgb(30, 67, 97);
    --primary-light: rgba(30, 67, 97, 0.8);
    --primary-lighter: rgba(30, 67, 97, 0.1);
    --text-light: #fff;
    --border-radius: 20px;
    --wave-color-light: #38598b;
    --wave-color-dark: #113f6d;
}

/* ======= Body ======= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
   
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Hiệu ứng sóng mềm mại ở bên trái */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cpath fill='rgba(60, 100, 150, 0.3)' d='M-400,800 C-250,750 -150,600 -100,500 C-50,400 -25,300 0,200 C25,100 50,0 100,-100 L-600,-100 L-600,800 Z'/%3E%3Cpath fill='rgba(70, 110, 160, 0.25)' d='M-450,800 C-300,750 -200,600 -150,500 C-100,400 -75,300 -50,200 C-25,100 0,0 50,-100 L-600,-100 L-600,800 Z'/%3E%3Cpath fill='rgba(80, 120, 170, 0.2)' d='M-500,800 C-350,750 -250,600 -200,500 C-150,400 -125,300 -100,200 C-75,100 -50,0 0,-100 L-600,-100 L-600,800 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    opacity: 0.9;
}

/* Hiệu ứng ánh sáng nhẹ */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 80% 20%, rgba(90, 140, 190, 0.2) 0%, rgba(25, 55, 85, 0) 50%),
        radial-gradient(circle at 20% 80%, rgba(100, 150, 200, 0.15) 0%, rgba(25, 55, 85, 0) 45%);
    z-index: -1;
}

/* ======= Main Layout ======= */
main {
    margin-top: 3%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transform: scale(0.95);
    transform-origin: center center;
}

/* ======= Form Container ======= */
.form-container {
    border-radius: var(--border-radius);
    margin-bottom: 7%;
    width: 100%;
    max-width: 800px;
    padding: 25px;
    overflow: hidden;
    background: #ffffff8a;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

/* ======= Brand Section ======= */
.brand-section {
    text-align: center;
    margin-bottom: 25px;
}

.brand-section img {
    max-width: 310px;
    height: auto;
}

.brand-section span {
    display: block;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-top: 5px;
}

/* ======= Form Title ======= */
.form-title {
    text-align: center;
    margin-bottom: 25px;
    margin-left: 10px;
    background-color: rgba(30, 67, 97, 0.08);
    padding: 12px;
    border-radius: 20px;
    width: 270px;
}

.form-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ======= Form Layout ======= */
.form-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    justify-items: center;
}

/* ======= Form Groups ======= */
.form-group {
    margin-bottom: 15px;
    height: 65px;
}

.form-group.textarea-group {
    height: auto;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 350px;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 13px;
    height: 35px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 67, 97, 0.1);
    outline: none;
}

.form-column {
    width: 350px;
}

.form-group textarea {
    overflow-y: auto;
    resize: none;
}

.form-hint {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* ======= Checkbox ======= */
.terms-section {
    grid-column: span 2;
    margin: 10px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
}

.checkbox-wrapper label {
    font-size: 13px;
    color: #444;
}

/* ======= Button Section ======= */
.button-section {
    grid-column: span 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    padding-right: 10%;
    gap: 20px;
}

.btn-signup {
    background: linear-gradient(to right, rgb(25, 55, 85), rgb(45, 85, 125));
    color: var(--text-light);
    border: none;
    padding: 10px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(25, 55, 85, 0.3);
    position: relative;
}

.btn-signup:hover {
    background: linear-gradient(to right, rgb(30, 65, 100), rgb(55, 100, 145));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(25, 55, 85, 0.4);
}

.btn-signup:active {
    top: 2px;
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(25, 55, 85, 0.2);
}

.login-link {
    font-size: 13px;
    color: #555;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ======= Select2 Custom ======= */
/* .select2-container {
    width: 350px !important;
} */

.select2-selection--multiple {
    min-height: 35px !important;
    border-radius: var(--border-radius) !important;
    border: 1px solid #ddd !important;
    max-height: 35px;
    overflow-y: auto;
}

.select2-selection__choice {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 1px 6px !important;
    font-size: 11px !important;
    margin: 2px !important;
}

.select2-selection__choice__remove {
    color: white !important;
    margin-right: 3px;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0 !important;
}

/* ======= File Input ======= */
input[type="file"] {
    padding: 5px;
    font-size: 12px;
    height: auto;
}

/* ======= Notifications ======= */
.ajax-error,
.alert-success {
    position: fixed;
    top: 20%;
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    max-width: 450px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s forwards;
}

.alert-success {
    background-color: rgba(42, 157, 143, 0.95);
}

.ajax-error ul {
    padding: 0;
    list-style: none;
    background: #d16330;
}

.ajax-error ul li {
    padding: 6px 10px 4px 10px;
    box-shadow: 1px 1px 2px gray;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .terms-section,
    .button-section {
        grid-column: span 1;
    }

    .button-section {
        flex-direction: column;
        gap: 15px;
        padding-right: 0;
    }

    .login-link {
        text-align: center;
    }

    .form-title {
        margin-bottom: 15px;
        position: static;
    }
}

/* ======= Footer ======= */
footer.sc-ifAKCX {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 0;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to right, rgb(23, 52, 77), var(--primary-color), rgb(23, 52, 77));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer.sc-ifAKCX a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 2px;
}

footer.sc-ifAKCX a:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

footer.sc-ifAKCX a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

footer.sc-ifAKCX a:hover:after {
    width: 100%;
}

/*  menu header */
.dropdown-menu-custom {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(to right, rgba(25, 55, 85, 0.95), rgba(45, 85, 125, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    width: 200px;
    min-height: 120px;
    text-align: center;
    display: none;
}

.dropdown-menu-custom a {
    display: block;
    padding: 10px 0;
    color: #000;
    text-decoration: none;
    box-shadow: 0px 1px 3px 1px #f1f1f1;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-menu-custom a:hover {
    background: linear-gradient(to right, rgba(25, 55, 85, 0.95), rgba(45, 85, 125, 0.9));
    border-radius: 4px;
}
.dropdown-menu-custom a:active {
    transform: translateY(1px);
}
.dropdown-menu-custom a.fade {
    box-shadow: none;
    border:none;
    opacity: 1 !important;
}
#loginMenu, #signupMenu {
    border: 2px solid #45768f;
    box-shadow: 0px 4px 8px 5px #a7cae53d;
}

#loginMenu a:hover, #signupMenu a:hover {
    box-shadow: 1px 1px 4px 2px #7396a9 !important;
    border: 2px solid #7396a9 !important;
    border-radius: 4px;
}
.site-header {
    position: fixed;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to right, rgba(25, 55, 85, 0.95), rgba(45, 85, 125, 0.9));
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-language {
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-language:hover {
    background: rgba(255, 255, 255, 0.2);
}

 .header-container .header-ul {
    display: flex;
    list-style: none;
    justify-content: space-between;
    margin: 0;
}

.header-ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease; /* Thêm transition cho mượt mà */
    position: relative; /* Cần để có thể dịch chuyển */
}

.header-ul li a:hover, .header-ul li a:focus {
    color: #fff;
    text-shadow: 1px -1px 1px #d5dfe5;
}

.header-ul li a:active {
    transform: translateY(2px);
    text-shadow: 0px -1px 1px #d5dfe5;
}

#mobileMenu, .mobile-menu-toggle {
    display: none !important;
}
/* responsive cho kích thước mmobile  */
@media (max-width: 432px) {
    .mobi-none {display: none;}
    .header-ul li a {font-size: 14px;}
    .header-container .header-ul {padding: 0;align-items: center;}
    .site-header {padding: 5px 0;}
    .dropdown-menu-custom { width: 130px;min-height: 80px;}
    .dropdown-menu-custom a {font-size: 12px !important;padding: 5px 0;}
    .mobile-menu-toggle {display: block !important;}
    #mobileMenu {display: block !important;}
    .mobile-slide-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top,
        #ffffff 0%,
        rgba(160, 190, 215, 0.5) 40%,
        rgba(70, 110, 140, 0.9) 75%,
        rgb(30, 67, 97) 100%);
        z-index: 300;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    }
    .mobile-slide-menu.active {right: 0}
    .mobile-slide-menu ul {list-style: none;padding: 0;}
    .mobile-slide-menu ul li a {
        display: block; 
        width: 100%;
        text-decoration: none;
        color: #fff;
    }
    .mobile-slide-menu li {
        position: relative;
        padding: 0;
        padding: 12px;
        border: 1px solid #dce7f0;
    }
    .mobile-slide-menu li:hover{box-shadow: inset 1px 2px 3px 6px #a6c5e2;}
    .mobile-slide-menu li:hover a { font-weight: 600;text-shadow: 2px 2px black; }
    .brand-section img {  max-width: 200px; }
    .form-title {padding: 10px; margin: auto;}
    .form-title h2 {font-size: 16px;}
    .form-group { margin-bottom: 5px;}
    .form-layout { grid-template-columns: 1fr; }
    .form-group input,
    .form-group select,
    .form-group textarea {width: 100%;max-width: 100%;}
    .form-column { width: 100%;}
    .select2-container {width: 100% !important;}
    .form-container {margin-bottom: 25%;}
    .ajax-error, .alert-success {left: unset !important;}
}