/* --- PAGE LAYOUT --- */
.appointment-page { 
    padding-top: 150px; 
    padding-bottom: 100px; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%;
    overflow-y: auto; 
}

.solid-form-box {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px 30px;
    box-sizing: border-box;
    margin-bottom: 50px;
    position: relative;
}

.form-header h1 { margin: 0 0 10px 0; font-size: 2.2rem; color: #333; }
.form-header p { color: #666; margin: 0 0 20px 0; line-height: 1.5; }
.form-header strong { color: var(--accent-pop); }

.appointment-form { display: flex; flex-direction: column; gap: 20px; position: relative; }
.form-group { text-align: left; position: relative; }
.form-group label { font-weight: 600; font-size: 0.9rem; margin-left: 5px; margin-bottom: 5px; display: block; color: #444; }

/* CLEAN INPUTS */
.clean-input {
    width: 100%; padding: 16px; border-radius: 12px; border: 1px solid #ddd;
    font-family: inherit; font-size: 1rem; color: #333;
    background-color: #f9f9f9; box-sizing: border-box; transition: 0.3s;
    -webkit-appearance: none;
}
.clean-input:focus { outline: none; border-color: var(--accent-pop); background-color: #fff; }
.clean-input.error { border-color: #ff4757; background-color: #fff5f5; }

/* Remove autofill blue background */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #f9f9f9 inset !important;
    -webkit-text-fill-color: #333 !important;
}

.form-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 20px center; background-size: 16px; }

/* DATE TRIGGER */
.date-trigger { width: 100%; padding: 16px; border-radius: 12px; border: 1px solid #ddd; background-color: #f9f9f9; box-sizing: border-box; cursor: pointer; font-size: 1rem; color: #666; position: relative; }
.date-trigger.has-value { color: #333; font-weight: 500; border-color: var(--accent-pop); background-color: #fff; }
.date-trigger::after { content: '\f073'; font-family: "Font Awesome 6 Free"; font-weight: 400; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #999; }

/* LOADING OVERLAY */
.loading-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    background: #f0fff4;
    border: 1px solid #25D366;
    border-radius: 12px;
    color: #25D366;
    font-weight: 600;
    animation: fadeIn 0.3s;
}
.loading-overlay.active { display: flex; }
.spinner { font-size: 1.5rem; margin-bottom: 10px; }

/* DATEPICKER */
.datepicker-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(5px); animation: fadeIn 0.2s ease; }
.datepicker-backdrop.show { display: flex; }
.calendar-modal { background: #fff; width: 300px; border-radius: 20px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: scaleUp 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes scaleUp { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-weight: 700; color: var(--accent-pop); font-size: 1rem; }
.month-btn { background: transparent; border: none; cursor: pointer; font-size: 1.2rem; color: #666; padding: 5px 10px; border-radius: 5px; }
.calendar-days-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.8rem; color: #999; margin-bottom: 10px; font-weight: 600; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day-cell { aspect-ratio: 1; display: flex; justify-content: center; align-items: center; cursor: pointer; border-radius: 50%; font-size: 0.9rem; transition: 0.2s; }
.day-cell:hover:not(.empty):not(.disabled) { background-color: #f0f4ff; color: var(--accent-pop); }
.day-cell.selected { background-color: var(--accent-pop); color: #fff; }
.day-cell.today { border: 1px solid var(--accent-bright); color: var(--accent-pop); }
.day-cell.disabled { color: #ddd; pointer-events: none; }
.day-cell.empty { pointer-events: none; }
.modal-close-hint { text-align: center; font-size: 0.8rem; color: #999; margin-top: 15px; }

@media (max-width: 768px) {
    .appointment-page { padding-top: 100px; padding-bottom: 100px; }
    .solid-form-box { width: 90%; margin: 0 auto; padding: 30px 20px; }
    .form-header h1 { font-size: 2rem; }
}