/* Agendar Page Specific Styles */

.scheduling-page-section {
    padding: 8rem 5% 5rem;
    /* Top padding to account for fixed header */
    background-color: transparent;
    /* Changed from var(--bg-color) to transparent */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Ensure content is above video */
}

/* Fixed Background Video Styles */
.video-background-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video-fixed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay to make text readable */
}

.scheduling-container {
    width: 100%;
    max-width: 600px;
    background: rgba(26, 26, 26, 0.95);
    /* Slightly transparent background for the form container */
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scheduling-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-transform: uppercase;
}

.scheduling-container .highlight {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: rgba(15, 15, 15, 0.8);
    /* Darker input background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Utility Class */
.hidden {
    display: none;
}

/* Custom Select Dropdown Styles */
.custom-select {
    position: relative;
    width: 100%;
    font-family: var(--font-main);
    user-select: none;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(15, 15, 15, 0.8);
    /* Match input bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.select-trigger:hover {
    border-color: var(--primary-color);
}

.custom-select.open .select-trigger {
    border-color: var(--primary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    /* Solid background for options */
    border: 1px solid var(--primary-color);
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 100;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

.custom-select.open .select-options {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

.select-options::-webkit-scrollbar {
    width: 8px;
}

.select-options::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.select-options::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.optgroup-label {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.option {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.option:last-child {
    border-bottom: none;
}

.option:hover {
    background-color: rgba(212, 175, 55, 0.1);
    /* Light gold bg */
    background-color: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    user-select: none;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.calendar-header button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.calendar-header button:hover {
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-day-header {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
}

.calendar-day {
    padding: 0.8rem 0;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background-color: rgba(255, 255, 255, 0.1);
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 700;
}

.calendar-day.disabled {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-day.today {
    border: 1px solid var(--primary-color);
}

/* Time Picker Styles (iPhone Scroll) */
.time-picker-wrapper {
    position: relative;
    height: 150px;
    background-color: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.time-picker-selection-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 40px;
    margin-top: -20px;
    background-color: rgba(212, 175, 55, 0.2);
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 1;
}

.time-picker-list {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    padding: 0;
    margin: 0;
    list-style: none;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.time-picker-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.time-picker-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.time-picker-item.active {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Disabled Time Style */
.time-picker-item.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

/* Padding to allow first and last items to be centered */
.time-picker-list::before,
.time-picker-list::after {
    content: '';
    display: block;
    height: 55px;
    /* (150px container - 40px item) / 2 */
}


.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: #d4af37;

    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background-color: #0f0f0f;
    transform: translateY(-2px);
}

.btn-submit i {
    font-size: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scheduling-page-section {
        padding-top: 6rem;
    }

    .scheduling-container {
        padding: 1.5rem;
    }
}

/* Custom Alert Modal Styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* Above everything */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1);
}

.alert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#custom-alert-message {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.btn-alert {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-alert:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}