/* =============================================
   Inquiry Page Styles
   ============================================= */

/* --- Info Grid --- */
.info-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.75rem;
}

.info-item .info-label {
    display: block;
    font-size: 0.75rem;
    color: #a1acb8;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.info-item .info-value {
    display: block;
    font-size: 0.95rem;
    color: #566a7f;
    font-weight: 700;
}

/* --- Captcha --- */
#captchaCanvas {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

#captchaError {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* --- Alerts --- */
.inquiry-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.inquiry-alert .alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.inquiry-alert .alert-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.inquiry-alert--error {
    background: #fef2f2;
    border: 1px solid rgba(220, 38, 38, 0.12);
}

.inquiry-alert--error .alert-icon { color: #dc2626; }
.inquiry-alert--error .alert-text { color: #991b1b; }

.inquiry-alert--warning {
    background: #fffbeb;
    border: 1px solid rgba(217, 119, 6, 0.12);
}

.inquiry-alert--warning .alert-icon { color: #d97706; }
.inquiry-alert--warning .alert-text { color: #92400e; }

.inquiry-alert--info {
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.inquiry-alert--info .alert-icon { color: #2563eb; }
.inquiry-alert--info .alert-text { color: #1e40af; }

/* --- Session Loader --- */
.session-loader {
    padding: 3rem;
}

.session-loader .loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(26, 82, 118, 0.15);
    border-top-color: #1a5276;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.session-loader .loader-text {
    color: #1a5276;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* --- Section Header --- */
.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #1a5276;
    padding-bottom: 0.75rem;
}

/* --- Student Header --- */
.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.student-header .student-name {
    margin-bottom: 0;
    font-weight: 700;
    color: #566a7f;
}

.student-header .student-name i {
    color: #1a5276;
}

/* --- Flatpickr Custom Theme --- */
.flatpickr-calendar {
    font-family: 'Tajawal', sans-serif;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(26, 82, 118, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(26, 82, 118, 0.08);
}

.flatpickr-months .flatpickr-month {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    border-radius: 10px 10px 0 0;
    color: #fff;
    height: 44px;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff;
    fill: #fff;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #e2e8f0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #1e293b;
    background: #fff;
}

.flatpickr-weekdays {
    background: #f8fafc;
}

span.flatpickr-weekday {
    color: #1a5276;
    font-weight: 700;
    font-size: 0.8rem;
}

.flatpickr-day {
    border-radius: 8px;
    font-weight: 500;
    color: #1e293b;
}

.flatpickr-day:hover {
    background: #eff6ff;
    border-color: #eff6ff;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #1a5276;
    border-color: #1a5276;
    color: #fff;
}

.flatpickr-day.today {
    border-color: #3498db;
    color: #1a5276;
    font-weight: 700;
}

.flatpickr-day.today:hover {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.flatpickr-day.disabled {
    color: #cbd5e1;
}

/* --- Choices.js Custom Theme --- */
.choices {
    margin-bottom: 0;
}

.choices__inner {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    background: #fff;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
}

.choices__inner:focus-within,
.choices.is-open .choices__inner {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.choices__list--single .choices__item {
    color: #1e293b;
    font-weight: 500;
}

.choices__placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    border-radius: 10px;
    border: 1px solid rgba(26, 82, 118, 0.08);
    box-shadow: 0 8px 32px rgba(26, 82, 118, 0.1);
    margin-top: 4px;
    overflow: hidden;
}

.choices__list--dropdown .choices__item--selectable,
.choices__list[aria-expanded] .choices__item--selectable {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: #eff6ff;
    color: #1a5276;
}

.choices__list--dropdown .choices__item--selectable.is-selected {
    background: #eff6ff;
    color: #1a5276;
    font-weight: 600;
}

.choices__input {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    background: transparent !important;
}

.choices[data-type*='select-one']::after {
    border-color: #94a3b8 transparent transparent;
    right: auto;
    left: 11.5px;
    margin-top: -2px;
}

.choices[data-type*='select-one'].is-open::after {
    border-color: transparent transparent #94a3b8;
    margin-top: -6px;
}

.choices.is-disabled .choices__inner {
    background: #f8fafc;
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Form Group Spacing --- */
#updateForm .form-group {
    margin-bottom: 1rem;
}

/* --- Readonly Notice --- */
.readonly-notice {
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e40af;
    font-weight: 500;
}
