/* assets/css/pages/book-appointment.css - Book Appointment page styles (shared styles: assets/css/public-layout.css) */

body.dark .navbar,
body.dark .footer,
body.dark .card,
body.dark .benefit-card,
body.dark .pill-role,
body.dark .cta-box,
body.dark .sidebar-overlay,
body.dark .sidebar,
body.dark .who-card,
body.dark .booking-card,
body.dark .summary-card {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark .ai-chat-input input::placeholder {
    color: #94a3b8 !important;
}

body.dark .booking-card .doctor-avatar {
    border-color: #334155 !important;
}

body.dark .booking-card .specialty-badge {
    background: #2d3a52 !important;
    color: #7aa9ff !important;
}

body.dark .booking-card .rating-stars {
    color: #fbbf24 !important;
}

body.dark .summary-card .summary-item i {
    color: #7aa9ff !important;
}

body.dark .form-control {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.dark .form-control::placeholder {
    color: #94a3b8 !important;
}

body.dark .form-control:focus {
    border-color: #0d6efd !important;
}

body.dark .form-label {
    color: #94a3b8 !important;
}

body.dark .method-option {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark .method-option:hover {
    background: #2d3a52 !important;
    border-color: #7aa9ff !important;
}

body.dark .method-option.active {
    background: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
}

.btn-success {
    background: #22c55e;
    color: #fff;
}

.btn-success:hover {
    background: #16a34a;
    transform: scale(1.02);
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.8rem 2.5rem;
    font-size: 1.05rem;
}

body.dark .btn-outline {
    border-color: #475569;
    color: #e2e8f0;
}

body.dark .btn-outline:hover {
    background: #2d3a52;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    padding: 30px 0 20px;
    background: #f6f9fc;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
    transition: background 0.3s;
}

body.dark .page-header {
    background: #0f172a;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.05rem;
    color: #4a5c72;
}

body.dark .page-header p {
    color: #94a3b8;
}

.page-header .breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5c72;
    margin-top: 6px;
}

body.dark .page-header .breadcrumb {
    color: #94a3b8;
}

.page-header .breadcrumb a {
    color: #0d6efd;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================================
   BOOKING SECTION
   ============================================================ */

.booking-section {
    padding: 30px 0 60px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Booking Card */

.booking-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    padding: 32px;
    transition: background 0.3s, border-color 0.3s;
}

.booking-card .doctor-info {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
    margin-bottom: 20px;
}

.booking-card .doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.booking-card .doctor-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.booking-card .doctor-info .specialty-badge {
    display: inline-block;
    background: #edf4fe;
    color: #0d6efd;
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
}

.booking-card .doctor-info .rating-stars {
    color: #f59e0b;
    font-size: 0.85rem;
}

.booking-card .doctor-info .rating-text {
    font-size: 0.8rem;
    color: #4a5c72;
}

body.dark .booking-card .doctor-info .rating-text {
    color: #94a3b8;
}

.booking-card .form-group {
    margin-bottom: 18px;
}

.booking-card .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #0b1e33;
}

body.dark .booking-card .form-label {
    color: #eef2f6;
}

.booking-card .form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
    background: #f8faff;
    color: #0b1e33;
}

.booking-card .form-control:focus {
    border-color: #0d6efd;
}

.booking-card .form-control::placeholder {
    color: #94a3b8;
}

.booking-card select.form-control {
    appearance: auto;
    cursor: pointer;
}

.booking-card textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Method Selection */

.method-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.method-option {
    padding: 12px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8faff;
    font-size: 0.85rem;
    font-weight: 500;
}

.method-option:hover {
    border-color: #0d6efd;
    background: #edf4fe;
}

.method-option.active {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
}

.method-option i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.method-option .method-price {
    font-size: 0.7rem;
    opacity: 0.7;
}

.method-option.active .method-price {
    color: rgba(255, 255, 255, 0.8);
}

body.dark .method-option {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark .method-option:hover {
    background: #2d3a52;
    border-color: #7aa9ff;
}

body.dark .method-option.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Summary Card */

.summary-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    padding: 28px 32px;
    transition: background 0.3s, border-color 0.3s;
    position: sticky;
    top: 100px;
}

.summary-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(13, 110, 253, 0.08);
}

.summary-card .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.summary-card .summary-item .label {
    color: #4a5c72;
}

body.dark .summary-card .summary-item .label {
    color: #94a3b8;
}

.summary-card .summary-item .value {
    font-weight: 500;
}

.summary-card .summary-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0 10px;
    border-top: 2px solid rgba(13, 110, 253, 0.08);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 4px;
}

.summary-card .summary-total .total-amount {
    color: #0d6efd;
    font-size: 1.3rem;
}

body.dark .summary-card .summary-total .total-amount {
    color: #7aa9ff;
}

.summary-card .book-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    margin-top: 12px;
}

.summary-card .secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 12px;
}

.summary-card .secure-note i {
    margin-right: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
    .summary-card {
        position: static;
    }
    .method-options {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .phone-popup {
        right: 55px;
        min-width: 180px;
    }
    .lang-popup {
        right: 55px;
        min-width: 130px;
    }
    .ai-chat-widget {
        width: 340px;
        height: 460px;
        right: 80px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-actions .btn {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .navbar .container {
        flex-wrap: wrap;
    }
    .nav-actions {
        margin-left: auto;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .booking-card {
        padding: 20px;
    }
    .summary-card {
        padding: 20px;
    }
    .method-options {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .sidebar {
        width: 280px;
        left: -300px;
    }
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 6px;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    .floating-btn .tooltip,
    .ai-chat-toggle .tooltip {
        display: none;
    }
    .phone-popup {
        right: 48px;
        min-width: 160px;
        bottom: 0;
    }
    .phone-popup .phone-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 48px;
        min-width: 120px;
        bottom: 0;
    }
    .lang-popup .lang-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .ai-chat-widget {
        width: 300px;
        height: 420px;
        right: 70px;
        bottom: 16px;
    }
    .ai-chat-messages {
        padding: 10px 14px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
    .ai-chat-header {
        padding: 10px 14px;
        min-height: 50px;
    }
    .ai-chat-header .avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.8rem;
    }
    .ai-chat-input {
        padding: 8px 12px 12px;
        gap: 6px;
    }
    .ai-chat-input input {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-height: 34px;
    }
    .ai-chat-input button {
        font-size: 0.8rem;
        padding: 6px 14px;
        min-height: 34px;
    }
    .quick-replies {
        padding: 0 12px 6px;
    }
    .quick-replies button {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .booking-card .doctor-info {
        flex-direction: column;
        text-align: center;
    }
    .method-options {
        grid-template-columns: 1fr 1fr;
    }
    .floating-btn,
    .ai-chat-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
    .floating-actions {
        bottom: 12px;
        right: 12px;
        gap: 5px;
    }
    .phone-popup {
        right: 42px;
        min-width: 140px;
        bottom: 0;
        padding: 8px 0;
        border-radius: 12px;
    }
    .phone-popup .phone-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 8px;
    }
    .phone-popup .phone-item i {
        width: 16px;
        font-size: 0.8rem;
    }
    .lang-popup {
        right: 42px;
        min-width: 100px;
        bottom: 0;
        padding: 6px 0;
        border-radius: 12px;
    }
    .lang-popup .lang-item {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
    .ai-chat-widget {
        width: 280px;
        height: 380px;
        right: 60px;
        bottom: 12px;
        border-radius: 16px;
    }
    .ai-chat-messages {
        padding: 10px 12px;
        gap: 8px;
    }
    .ai-chat-messages .message {
        font-size: 0.75rem;
        padding: 6px 10px;
        max-width: 90%;
    }
    .ai-chat-header {
        padding: 8px 12px;
        min-height: 44px;
    }
    .ai-chat-header .avatar {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    .ai-chat-header .header-info h4 {
        font-size: 0.75rem;
    }
    .ai-chat-header .header-info p {
        font-size: 0.6rem;
    }
    .ai-chat-input {
        padding: 6px 10px 10px;
        gap: 5px;
    }
    .ai-chat-input input {
        font-size: 0.75rem;
        padding: 5px 10px;
        min-height: 30px;
    }
    .ai-chat-input button {
        font-size: 0.75rem;
        padding: 5px 12px;
        min-height: 30px;
    }
    .quick-replies {
        padding: 0 10px 4px;
        gap: 4px;
    }
    .quick-replies button {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}

@media (max-width: 400px) {
    .phone-popup {
        right: 38px;
        min-width: 120px;
    }
    .phone-popup .phone-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .lang-popup {
        right: 38px;
        min-width: 90px;
    }
    .lang-popup .lang-item {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    .ai-chat-widget {
        width: 250px;
        height: 340px;
        right: 52px;
    }
    .ai-chat-messages {
        padding: 8px 10px;
    }
    .ai-chat-messages .message {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    .ai-chat-input input {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-height: 26px;
    }
    .ai-chat-input button {
        font-size: 0.7rem;
        padding: 4px 10px;
        min-height: 26px;
    }
}
