﻿/* ============================================================
   APPOINTMENT PAGE STYLES - PAKMEDICS
   ============================================================ */

/* Appointment Card */
.appointment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.appointment-card-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, #f0faf8 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.appointment-card-title {
    font-weight: 700;
    color: #0a1a1f;
    margin: 0;
    font-size: 18px;
}

.appointment-card-body {
    padding: 24px;
}

/* Appointment Form */
.appointment-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.appointment-form .form-control:focus {
    border-color: #0d7c6e;
    box-shadow: 0 0 0 4px rgba(13,124,110,0.1);
    outline: none;
}

.appointment-form .form-label {
    font-size: 14px;
    color: #0a1a1f;
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.time-slot {
    display: block;
    cursor: pointer;
}

.time-slot input[type="radio"] {
    display: none;
}

.time-slot .time-slot-label {
    display: block;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #0a1a1f;
    transition: all 0.3s ease;
    cursor: pointer;
}

.time-slot input[type="radio"]:checked + .time-slot-label {
    border-color: #0d7c6e;
    background: #f0faf8;
    color: #0d7c6e;
}

.time-slot .time-slot-label:hover {
    border-color: #0d7c6e;
    background: #f8fafc;
}

/* Appointment Types */
.appointment-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.appointment-type {
    display: block;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.appointment-type.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.appointment-type input[type="radio"] {
    display: none;
}

.appointment-type:has(input:checked) {
    border-color: #0d7c6e;
    background: #f0faf8;
}

.appointment-type-icon {
    display: block;
    font-size: 24px;
    color: #0d7c6e;
    margin-bottom: 4px;
}

.appointment-type-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #0a1a1f;
}

.appointment-type-price {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.appointment-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
}

.appointment-type-badge.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

/* Provider Card */
.provider-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.provider-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.provider-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.provider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #0d7c6e, #10a58a);
}

.provider-info {
    flex: 1;
    min-width: 0;
}

.provider-name {
    font-weight: 700;
    color: #0a1a1f;
    margin: 0;
    font-size: 16px;
}

.provider-profession {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.provider-card-body {
    padding: 16px 20px;
}

.provider-detail {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.provider-detail:last-child {
    border-bottom: none;
}

.provider-detail-label {
    color: #94a3b8;
    font-weight: 500;
}

.provider-detail-value {
    color: #0a1a1f;
    font-weight: 500;
    text-align: right;
}

.verified-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.verified-badge i {
    margin-right: 4px;
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.info-card-title {
    font-weight: 700;
    color: #0a1a1f;
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title i {
    color: #0d7c6e;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.service-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.service-icon.online {
    background: #dbeafe;
    color: #1e40af;
}

.service-icon.homevisit {
    background: #d1fae5;
    color: #065f46;
}

.service-icon.inperson {
    background: #fef3c7;
    color: #92400e;
}

.service-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #0a1a1f;
}

.service-fee {
    font-size: 12px;
    font-weight: 600;
    color: #0d7c6e;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive */
@media (max-width: 992px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .appointment-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .appointment-card-body {
        padding: 16px;
    }
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .appointment-types {
        grid-template-columns: 1fr 1fr;
    }
    .provider-card-header {
        padding: 16px;
    }
    .provider-avatar {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 576px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .time-slot .time-slot-label {
        padding: 6px 10px;
        font-size: 12px;
    }
    .appointment-types {
        grid-template-columns: 1fr;
    }
    .appointment-card-header {
        padding: 14px 16px;
    }
    .appointment-card-title {
        font-size: 16px;
    }
    .provider-card-header {
        flex-direction: column;
        text-align: center;
    }
    .provider-avatar {
        width: 56px;
        height: 56px;
    }
    .appointment-form .d-flex {
        flex-direction: column;
    }
    .appointment-form .d-flex .btn {
        width: 100%;
    }
    .service-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    .service-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}