:root {
    --primary: #092c57;
    --gold: #B8860B;
    --soft-gold: #fff7e2;
    --bg-body: #05162b;
    --card-inner-bg: #ffffff;
    --slot-bg: #f4f7f9;
    --text-muted: #8898aa;
}

@font-face {
  font-family: 'Silpakorn72';
  src: url('../assets/fonts/silapakorn72-regular-webfont.woff2') format('woff2'),
    url('../assets/fonts/silapakorn72-regular-webfont.woff') format('woff'),
    url('../assets/fonts/silapakorn72-regular-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(184, 134, 11, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(9, 44, 87, 0.4) 0%, transparent 40%);
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.title-area {
    color: white;
    font-family: 'Silpakorn72', sans-serif;
    border: 0.1rem solid white;
    border-radius: 24px;
    max-width: 1100px;
    width: 100%;
    text-align: center;
    padding: 1.3rem 0 0.7rem 0;
    margin: auto;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.booking-main-card {
    background: var(--card-inner-bg);
    width: 100%;
    max-width: 1100px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    min-height: 680px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.info-aside {
    flex: 1.1;
    position: relative;
    color: white;
    overflow: hidden;
}

.info-aside img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.info-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 22, 43, 0.95) 5%, rgba(5, 22, 43, 0.3) 50%, transparent);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.info-overlay h5 {
    color: var(--gold);
    letter-spacing: 1px;
}

.main-content-area {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    background: white;
}

.calendar-wrapper {
    padding: 2.5rem 2.5rem 1rem 2.5rem;
    border-bottom: 1px solid #eee;
}

.timeslot-wrapper {
    padding: 2rem 2.5rem;
    background: var(--slot-bg);
    flex-grow: 1;
}

@media screen and (max-width: 768px) {
    .calendar-wrapper {
        padding: 1rem 1rem 0 1rem;
    }

    .timeslot-wrapper {
        padding: 1rem;
    }
    
}

.section-header {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
}

.table td {
    padding: 3px !important;
    border: none;
    text-align: center;
}

.table a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: auto;
    text-decoration: none;
    color: var(--primary);
    border-radius: 12px;
    transition: 0.3s;
    font-weight: 500;
}

.table a:hover {
    background-color: var(--soft-gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.active-day {
    background-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(9, 44, 87, 0.3);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.time-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 14px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: 0.2s;
    font-size: 0.95rem;
}

.time-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--soft-gold);
    transform: scale(1.03);
}

.form-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 22, 43, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-card {
    background: white;
    width: 100%;
    max-width: 650px;
    border-radius: 28px;
    padding: 3rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border-top: 6px solid var(--gold);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.form-card::-webkit-scrollbar {
    display: none;
}

.summary-ribbon {
    background: var(--primary);
    color: white;
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
}

.btn-submit {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.btn-submit:hover:not(:disabled) {
    background-color: var(--gold);
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-card input:not([type="file"]):not([type="radio"]):not([type="checkbox"]),
.form-card select,
.form-card textarea {
    border-radius: 10px !important;
    padding: 12px 15px !important;
    border: 1px solid #dee2e6 !important;
    background-color: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.form-card label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
}

/* .modern-radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.modern-radio-group label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 20px !important;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6 !important;
    border-radius: 14px !important;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
    width: 100%;
}

.modern-radio-group label:has(input:checked),
.modern-radio-group label.active {
    background-color: var(--soft-gold) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
} */

.hidden-file-input {
    display: none !important;
}

.custom-file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: 0.3s;
}

.custom-file-upload:hover {
    border-color: var(--gold);
    background-color: var(--soft-gold);
}

.custom-file-upload .material-symbols-outlined {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 10px;
}

.pdpa-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.25rem;
}

.form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .booking-main-card {
        flex-direction: column;
        min-height: auto;
    }

    .info-aside {
        height: 250px;
        flex: none;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }
}

.success-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 28px;
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    background-color: var(--soft-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

.success-icon-wrapper .material-symbols-outlined {
    font-size: 60px;
}

.btn-submit:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.btn-finish {
    background: var(--primary);
    color: white;
    padding: 12px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    margin-top: 2rem;
    border: none;
}

.btn-finish:hover {
    background-color: var(--gold);
    color: white;
}

.modal {
    z-index: 3000 !important;
}

.modal-backdrop {
    z-index: 2990 !important;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-container img {
    display: block;
}

.captcha-container input {
    width: 100px;
}

.btn-finish.w-100 {
    padding: 14px;
    font-size: 1.1rem;
}

#successModal .modal-content {
    border-radius: 30px;
    overflow: hidden;
}

.success-icon-wrapper {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}