/* ========================================
   Schedule a Consultation Page
   ======================================== */

.consultation-page {
    padding-bottom: 60px;
}

.consultation-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 24px;
}

.consultation-title {
    font-size: 2rem;
    font-weight: 700;
    color: #162033;
    margin-bottom: 8px;
}

.consultation-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 991px) {
    .consultation-layout {
        grid-template-columns: 1fr;
    }
}

/* Info Card */
.consultation-info {
    position: sticky;
    top: 100px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: #162033;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon .material-symbols-outlined {
    font-size: 20px;
}

.info-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-body strong {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.info-body span {
    font-size: 14px;
    font-weight: 600;
    color: #162033;
}

.consultation-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Form Wrap */
.consultation-form-wrap {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step.active {
    background: #f26522;
    color: #fff;
}

.step.completed {
    background: #198754;
    color: #fff;
}

.step.inactive {
    background: #e9ecef;
    color: #6c757d;
}

.step-divider {
    width: 60px;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-divider.active {
    background: #f26522;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #162033;
    margin-bottom: 20px;
}

/* Calendar */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-calendar {
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #162033;
    transition: all 0.2s;
}

.btn-calendar:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    max-width: 380px;
    margin: 0 auto 4px;
}

.calendar-header > div {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    padding: 6px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    max-width: 380px;
    margin: 0 auto;
}

.calendar-day {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    border: 1px solid transparent;
    transition: all 0.2s;
    color: #162033;
}

.calendar-day:hover:not(.disabled) {
    background: #fff3e6;
    border-color: #f26522;
}

.calendar-day.selected {
    background: #f26522;
    color: #fff;
    border-color: #f26522;
}

.calendar-day.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* Time Slots */
.time-slots {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.time-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #162033;
    margin-bottom: 12px;
}

.time-slot-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.time-slot-btn {
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #162033;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot-btn:hover {
    border-color: #f26522;
    color: #f26522;
}

.time-slot-btn.selected {
    background: #f26522;
    color: #fff;
    border-color: #f26522;
}

/* Form Groups */
.form-group-custom {
    margin-bottom: 16px;
}

.form-group-custom label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #162033;
    margin-bottom: 6px;
}

.form-group-custom input,
.form-group-custom select,
.form-group-custom textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    color: #162033;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-custom input:focus,
.form-group-custom select:focus,
.form-group-custom textarea:focus {
    outline: none;
    border-color: #f26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.form-group-custom input.is-invalid,
.form-group-custom select.is-invalid,
.form-group-custom textarea.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group-custom textarea {
    resize: vertical;
    min-height: 80px;
}

.onay_box .form-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.onay_box input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.onay_box a {
    color: #f26522;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .th-btn {
    flex: 1;
    justify-content: center;
}

.th-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f26522;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.th-btn:hover {
    background: #d94d0e;
}

.th-btn.btn-outline {
    background: #fff;
    color: #162033;
    border: 1px solid #dee2e6;
}

.th-btn.btn-outline:hover {
    background: #f8f9fa;
}

.th-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.th-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.4s ease;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #d1e7dd;
    color: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-icon .material-symbols-outlined {
    font-size: 36px;
}

.success-message h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #162033;
    margin-bottom: 8px;
}

.success-message p {
    color: #555;
    font-size: 15px;
}

/* Form Messages */
.form-messages {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-messages.error {
    display: block;
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* RTL Support */
[dir="rtl"] .consultation-layout {
    direction: rtl;
}

[dir="rtl"] .info-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .calendar-nav .btn-calendar:first-child {
    order: 1;
}

[dir="rtl"] .calendar-nav .btn-calendar:last-child {
    order: -1;
}
