/* Color Palette & Font Setup */
:root {
    --primary-brown: #4A3B2C;
    --secondary-brown: #6b5641;
    --accent-gold: #c2a77a;
    --bg-cream: #F4F1EA;
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --disabled-grey: #D3D3D3;
    --error-red: #A33333;
}

@font-face {
    font-family: 'Sifonn';
    src: url('SIFONN_PRO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('NeueMontreal-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Neue Montreal', Helvetica, Arial, sans-serif;
    background: url('website-bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Mobile Background Optimization using dedicated vertical background asset */
@media (max-width: 768px) {
    body {
        background: url('mobile-bg.png') no-repeat center center fixed;
        background-size: cover;
        background-color: var(--primary-brown); 
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-container {
    background-color: rgba(244, 241, 234, 0.95); 
    border-radius: 10px;
    padding: 40px;
    margin-top: -30px; 
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px 80px;
    background: transparent; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.subtitle {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title {
    font-family: 'Sifonn', sans-serif;
    font-size: 4rem; 
    line-height: 1;
    margin-bottom: 20px;
}

.date-badge {
    display: inline-block;
    border: 2px solid var(--text-light);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 1.1rem;
    margin-bottom: 25px;
    background-color: rgba(0,0,0,0.2); 
}

.theme {
    font-size: 1.5rem;
    font-style: normal;
    margin-bottom: 35px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Neue Montreal', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary-brown);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-brown);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; 
}

.sizing-fix {
    width: 240px;
    height: 48px;
}

/* Sections */
.section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(74, 59, 44, 0.1);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-family: 'Sifonn', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-brown);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e5e0d8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-brown);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.image-placeholder img {
    max-width: 100%;
    opacity: 0.3;
}

.image-placeholder p {
    position: absolute;
    font-weight: bold;
    color: var(--primary-brown);
}

/* Booking Tool */
.booking-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .booking-container {
        padding: 40px;
    }
}

.booking-step {
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
}

.booking-step.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.booking-step h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-brown);
}

/* Grids */
.scholar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .scholar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.scholar-btn, .time-btn {
    padding: 12px;
    border: 1px solid var(--primary-brown);
    background: transparent;
    color: var(--primary-brown);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: 'Neue Montreal', sans-serif;
    text-align: center;
}

.scholar-btn.selected, .time-btn.selected {
    background: var(--primary-brown);
    color: #fff;
}

.scholar-btn:hover:not(.selected) {
    background: rgba(74, 59, 44, 0.1);
}

/* Date Tabs */
.date-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.date-btn {
    padding: 10px 15px;
    border: none;
    background: #e5e0d8;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Neue Montreal', sans-serif;
    white-space: nowrap;
}

.date-btn.active {
    background: var(--primary-brown);
    color: #fff;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 500px) {
    .time-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.time-btn:disabled {
    background: var(--disabled-grey);
    border-color: var(--disabled-grey);
    color: #888;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Form Elements */
#booking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Neue Montreal', sans-serif;
    font-size: 1rem;
}

.privacy-notice {
    font-size: 0.8rem;
    color: #666;
}

.submit-btn {
    width: 100%;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 25px;
    background: var(--primary-brown);
    color: #fff;
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-cream);
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

/* PDF Modal Specifics */
.pdf-modal-content {
    height: 90vh;
}

.desktop-pdf {
    display: block;
    width: 100%;
    height: 100%;
}

.mobile-pdf-action {
    display: none;
    padding: 40px 20px;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 768px) {
    .desktop-pdf {
        display: none;
    }
    .mobile-pdf-action {
        display: flex;
    }
}

.close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--error-red);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #8b2b2b;
}

.iframe-container {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Notices & Success Modal Extensions */
.cancel-notice {
    font-size: 0.85rem;
    color: var(--secondary-brown);
    margin-bottom: 15px;
    font-weight: bold;
}

.mt-20 {
    margin-top: 20px;
}

.success-box {
    height: auto;
    min-height: 250px;
    max-width: 450px;
    padding: 30px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.success-msg {
    font-size: 1rem;
    margin-bottom: 10px;
}
