﻿
@font-face {
    font-family: 'svn-gilroy xbold';
    src: url('svn-gilroy/svn-gilroy xbold.otf') format('opentype');
}

@font-face {
    font-family: 'svn-gilroy medium';
    src: url('svn-gilroy/svn-gilroy medium.otf') format('opentype');
}

/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
        border: none;
    }

    a:focus {
        text-decoration: none;
    }

body {
    font-family: 'svn-gilroy medium',sans-serif;
    background-image: url(/Image/1.1.png);
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
    background-repeat: no-repeat;
    background-position: top;
}

.box-time {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: end;
    padding-right: 25px;
}

    .box-time img {
        max-width: 90%;
    }

/* Loader overlay che toàn màn hình */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: none; /* ẩn mặc định */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Hình xoay tròn */
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.box-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    justify-items: center;
    height: 100vh;
}

.box-btn {
    position: absolute;
    bottom: 15px;
    width: 100%;
}

    .box-btn img {
        max-width: 50%;
    }

.layout-btn-home {
    display: none;
}

.box-back {
    display: flex;
    justify-content: center;
    margin-bottom: -35px;
}

    .box-back img {
        width: 300px;
        cursor: pointer;
    }

.titlex {
    font-family: 'svn-gilroy xbold', sans-serif;
    font-size: 45px;
}

.title {
    font-family: 'svn-gilroy xbold', sans-serif;
    font-size: 36px;
}

h4 {
    font-size: 21px;
    font-weight: bold;
    color: #cc282e;
    margin-bottom: 15px;
    font-family: 'svn-gilroy xbold', sans-serif;
}

#formSubmit {
    padding: 20px;
    border: 0px solid #ddd;
    border-radius: 5px;
    background-color: rgba(255, 248, 212, 0.9);
    max-width: 480px;
    margin: 15px;
}

.form-label {
    margin: 0;
    font-family: 'svn-gilroy xbold', sans-serif;
    color: #cc282e;
    font-size: 14px;
}

.form-check-input[type=checkbox] {
    font-size: 16px;
}
/* Áp dụng cho thẻ SELECT của bạn */
select {
    /* 1. Thiết lập chiều rộng cố định */
    width: 200px; /* Chọn một chiều rộng cố định phù hợp với form */
    /* 2. Ngăn nội dung xuống dòng */
    white-space: nowrap;
    /* 3. Đảm bảo phần nội dung thừa bị ẩn */
    overflow: hidden;
    /* 4. Hiển thị dấu ba chấm cho phần nội dung bị cắt */
    text-overflow: ellipsis;
}

/* Quan trọng: Áp dụng cho phần tử cha (wrapper) để ngăn toàn bộ form bị đẩy */
.select-wrapper {
    /* Đảm bảo chiều rộng của wrapper khớp với SELECT */
    width: 200px;
    overflow: hidden; /* Ngăn bất kỳ nội dung nào bên trong wrapper tràn ra */
}

table tr td {
    vertical-align: middle;
    width: 50%;
    padding: 3px !important;
}




.form-control {
    font-size: unset;
    color: #cc282e;
    font-family: 'svn-gilroy xbold', sans-serif;
    text-align: center;
    font-size: 16px;
}

input::placeholder {
    font-family: 'svn-gilroy xbold', sans-serif;
    color: lightgray !important;
    text-align: center;
}

.form-control:focus {
    color: #cc282e;
}

#resultTitle {
    font-size: 30px;
    color: #cc282e;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #cc282e;
}

.txt-red {
    color: #cc282e;
}

p {
    margin: 0;
}

#name {
    text-transform: uppercase;
}

#btnSubmit {
    background-color: #cc282e;
    border: 1px solid #f3e989;
    color: #fff;
    padding: 5px 50px;
    border-radius: 8px;
}

.note {
    text-align: justify;
    font-family: 'svn-gilroy xbold', sans-serif;
}
/* --- CSS TÙY CHỈNH CHO DATEPICKER (Mới) --- */
.ui-datepicker {
    width: 18em;
    padding: .75rem;
    display: none;
    background: #ffffff;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

    .ui-datepicker a {
        color: #374151; /* gray-700 */
    }
/* Tiêu đề tháng/năm */
.ui-datepicker-header {
    padding: .5rem 0;
    background: #f3f4f6; /* gray-100 */
    border: none;
    color: #1f2937; /* gray-800 */
    font-weight: 600;
    border-radius: 0.5rem;
}
/* Các nút điều hướng */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    top: 5px;
    cursor: pointer;
    border-radius: 9999px;
    transition: background-color 0.15s;
    padding: 3px;
}

    .ui-datepicker .ui-datepicker-prev:hover,
    .ui-datepicker .ui-datepicker-next:hover {
        background-color: #e5e7eb;
    }
/* Ngày */
.ui-datepicker td {
    padding: 1px;
    border: 0;
}

    .ui-datepicker td span,
    .ui-datepicker td a {
        display: block;
        padding: .5em;
        text-align: center;
        text-decoration: none;
        border-radius: 0.5rem;
    }
/* Ngày mặc định */
.ui-state-default {
    background: transparent;
    color: #4b5563;
    border: none;
}
/* Ngày hover */
.ui-state-hover,
.ui-state-focus {
    border: none;
    background: #e0e7ff; /* indigo-100 */
    font-weight: bold;
    color: #3730a3;
}
/* Ngày được chọn (Selected/Current Day) */
.ui-state-active {
    background: #4f46e5 !important; /* indigo-600 */
    color: #ffffff !important;
    font-weight: bold;
    border: none !important;
}
/* Ngày không thể chọn (maxDate) */
.ui-state-disabled {
    opacity: 0.5;
    cursor: default;
}

.modal-content {
    background-color: rgba(255, 248, 212, 0.9) !important;
    min-height: 400px;
}


.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99;
}

.modal-backdrop {
    background-color: transparent;
}

@media (max-width: 1440px) {
    .box-time img {
        max-width: 50%;
    }

    .note {
        font-size: 11px;
    }
}

@media(max-width: 1366px) {
    .box-time img {
        max-width: 50%;
    }

    body {
        font-size: 14px;
    }

    .form-control {
        padding: 3px 5px;
    }

    #formSubmit {
        width: 420px;
        padding: 10px 20px;
    }

    .note {
        font-size: 11px;
    }
}

@media(max-width: 1280px) {
    body {
        font-size: 11px;
    }

    .box-btn img {
        max-width: 35%;
    }

    .box-time img {
        max-width: 45%
    }

    #formSubmit {
        width: 380px;
        padding: 5px;
    }
}

@media(max-width: 500px) {
    body {
        background-image: url(/Image/1.1.mb.png);
    }

    .pc {
        display: none;
    }

    .box-btn img {
        max-width: 80%;
    }

    .title {
        font-size: 28px;
    }

    h4 {
        font-size: 18px;
    }

    .box-form {
        background-image: url(../Image/bg-mobile-x.png);
        background-repeat: repeat;
        background-size: contain;
    }

    .modal-backdrop {
        background-image: url(../Image/bg-mobile-x.png);
        background-repeat: repeat;
        background-size: contain;
    }

    #formSubmit {
        padding: 20px 5px;
        width: 95%;
        margin: auto;
    }

    .modal {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding-bottom: 30px;
        height: auto;
    }

    #resultTitle {
        font-size: 26px;
    }

    #resultMessage {
        font-size: 14px;
    }
}
