/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    min-height: auto;
}

/* Page Banner Styles */
.page-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('https://space.coze.cn/api/coze_space/gen_image?image_size=landscape_16_9&prompt=museum%20entrance%20architecture%20exhibition%20hall%20high%20resolution%20modern&sign=a906f5394b34c58a6b498e1a377f16dc');
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-title {
    position: relative;
    z-index: 10;
    font-size: 48px;
    font-weight: bold;
    color: white;
    font-family: "Noto Serif SC", serif;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    background-color: white;
    max-width: 1920px;
}

.content-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 16px;
}

/* Notice Section Styles */
.notice-section {
    background-color: #f9fafb;
    padding: 32px;
    margin-bottom: 32px;
}

.notice-section h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #374151;
}

.notice-list i {
    color: #b91c1c;
    margin-top: 4px;
}

/* Form Section Styles */
.form-section {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 48px;
    transition: box-shadow 0.3s;
}

.form-section:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.form-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.form-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: black;
}

.btn-query {
    background-color: rgba(185, 28, 28, 0.04);
    color: #b91c1c;
    border: 1px solid #b91c1c;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.btn-query:hover {
    background-color: #fecaca;
    color: #991b1b;
}

.appointment-form {
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group-full {
    margin-bottom: 32px;
}

.form-group label,
.form-group-full > label {
    display: block;
    color: #374151;
    font-weight: 500;
    font-size: 16px;
}

.form-group label i,
.form-group-full > label i {
    color: #b91c1c;
    margin-right: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="date"] {
    cursor: pointer;
    position: relative;
    background-color: white;
    color: #111827;
}

.form-group input[type="date"]:hover {
    border-color: #b91c1c;
    background-color: #fef2f2;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(22%) sepia(77%) saturate(3000%) hue-rotate(348deg) brightness(90%) contrast(90%);
}

.form-group input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: #111827;
}

.form-group input[type="date"]::-webkit-datetime-edit-text {
    color: #111827;
}

.form-group input[type="date"]::-webkit-datetime-edit-month-field,
.form-group input[type="date"]::-webkit-datetime-edit-day-field,
.form-group input[type="date"]::-webkit-datetime-edit-year-field {
    color: #111827;
}

.form-group input:focus {
    outline: none;
    border-color: #b91c1c;
}

/* Radio Grid Styles */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.radio-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-item:hover {
    border-color: #b91c1c;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-label {
    color: #111827;
    font-size: 16px;
    flex: 1;
    transition: color 0.3s;
}

.radio-item input[type="radio"]:checked ~ .radio-label {
    color: #b91c1c;
}

.radio-indicator {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    pointer-events: none;
    transition: all 0.3s;
}

.radio-item input[type="radio"]:checked ~ .radio-indicator {
    border-color: #b91c1c;
    background-color: rgba(185, 28, 28, 0.1);
}

/* Time Slot Grid Styles */
.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.timeslot-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.timeslot-item:not(.disabled):hover {
    border-color: #b91c1c;
}

.timeslot-item.disabled {
    border-color: #e5e7eb;
    background-color: #f9fafb;
    cursor: not-allowed;
}

.timeslot-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.timeslot-time {
    font-size: 16px;
    color: #111827;
    transition: color 0.3s;
    text-align: center;
}

.timeslot-item.disabled .timeslot-time {
    color: #9ca3af;
}

.timeslot-item input[type="radio"]:checked ~ .timeslot-time {
    color: #b91c1c;
}

.timeslot-status {
    font-size: 12px;
    margin-top: 4px;
}

.timeslot-status.available {
    color: #059669;
}

.timeslot-status.closed {
    color: #ef4444;
}

.timeslot-indicator {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    pointer-events: none;
    transition: all 0.3s;
}

.timeslot-item input[type="radio"]:checked ~ .timeslot-indicator {
    border-color: #b91c1c;
    background-color: rgba(185, 28, 28, 0.1);
}

/* Agreement Styles */
.form-agreement {
    padding-top: 8px;
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #b91c1c;
}

.checkbox-label span {
    color: #374151;
    font-size: 16px;
}

.checkbox-label a {
    color: #b91c1c;
    transition: opacity 0.3s;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button Styles */
.form-submit {
    padding-top: 16px;
}

.btn-submit {
    width: 100%;
    background-color: #b91c1c;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background-color: #991b1b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* FAQ Section Styles */
.faq-section {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.faq-section h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-item p {
    color: #374151;
    line-height: 1.6;
}



/* Responsive Styles */
@media (max-width: 1024px) {
    .navbar .nav-menu {
        display: none;
    }
    
    .timeslot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        min-width: auto;
        width: 100%;
    }
    
    .content-container {
        padding: 24px 16px;
        width: 100%;
    }
    
    .navbar .nav-menu {
        display: none;
    }
    
    .page-banner {
        height: 250px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .notice-section {
        padding: 20px 16px;
    }
    
    .notice-section h2 {
        font-size: 20px;
    }
    
    .appointment-form {
        padding: 24px 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .form-group-full {
        margin-bottom: 24px;
    }
    
    .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .timeslot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-section {
        padding: 24px 16px;
    }
    
    .faq-section h2 {
        font-size: 20px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .main-content {
        width: 100%;
    }
    
    .content-container {
        padding: 16px;
        width: 100%;
    }
    
    .page-banner {
        height: 200px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .notice-section {
        padding: 16px 12px;
    }
    
    .notice-section h2 {
        font-size: 18px;
    }
    
    .appointment-form {
        padding: 20px 12px;
    }
    
    .form-header {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .btn-query {
        width: 100%;
        justify-content: center;
    }
    
    .form-group label,
    .form-group-full > label {
        font-size: 14px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="number"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .radio-label {
        font-size: 14px;
    }
    
    .timeslot-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .timeslot-time {
        font-size: 14px;
    }
    
    .timeslot-status {
        font-size: 11px;
    }
    
    .checkbox-label span {
        font-size: 14px;
    }
    
    .btn-submit {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .faq-section {
        padding: 20px 12px;
    }
    
    .faq-section h2 {
        font-size: 18px;
    }
    
    .faq-item h3 {
        font-size: 16px;
    }
    
    .faq-item p {
        font-size: 14px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
