/* Mental Health Services Page */

/* Hero */
.mhs-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.mhs-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 50% 50% 0 0;
}

.mhs-hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: white;
}

.mhs-hero-content p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.92;
    line-height: 1.7;
}

/* Grid Section */
.mhs-grid-section {
    padding: 60px 0 80px;
    background: var(--bg-secondary);
}

.mhs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Professional Card */
.mhs-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 74, 74, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mhs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(44, 74, 74, 0.14);
}

.mhs-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(0, 168, 168, 0.15), rgba(212, 225, 87, 0.15));
}

.mhs-card-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: white;
    letter-spacing: 2px;
}

.mhs-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mhs-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.mhs-card-designation {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mhs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(44, 74, 74, 0.08);
}

.mhs-card-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.mhs-card-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

.mhs-book-btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-yellow) 100%);
    color: var(--primary-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(212, 225, 87, 0.3);
}

.mhs-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 225, 87, 0.5);
}

/* Modal */
.mhs-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(31, 53, 53, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.mhs-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mhs-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.mhs-modal-overlay.active .mhs-modal {
    transform: scale(1) translateY(0);
}

.mhs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(44, 74, 74, 0.06);
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.mhs-modal-close:hover {
    background: rgba(44, 74, 74, 0.12);
    color: var(--primary-color);
}

/* Modal Doctor Info */
.mhs-modal-doctor-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 14px;
}

.mhs-modal-doctor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mhs-modal-doctor-text h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.mhs-modal-doctor-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.mhs-modal-step h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.mhs-modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

/* Date Pills */
.mhs-dates-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.mhs-date-pill {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    min-width: 80px;
}

.mhs-date-pill:hover {
    border-color: var(--secondary-color);
}

.mhs-date-pill.selected {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(0, 168, 168, 0.08), rgba(0, 168, 168, 0.04));
}

.mhs-date-pill-day {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mhs-date-pill-date {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2px;
}

/* Slots Grid */
.mhs-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mhs-slot-btn {
    padding: 0.7rem 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    text-align: center;
}

.mhs-slot-btn:hover {
    border-color: var(--accent-color);
    background: rgba(212, 225, 87, 0.06);
}

.mhs-slot-btn.selected {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color), rgba(0, 168, 168, 0.85));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 168, 168, 0.25);
}

.mhs-proceed-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

.mhs-proceed-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Confirmation Step */
.mhs-confirm-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
}

.mhs-confirm-icon svg {
    width: 100%;
    height: 100%;
    animation: mhs-check-draw 0.6s ease-out forwards;
}

@keyframes mhs-check-draw {
    0% { opacity: 0; transform: scale(0.5); }
    60% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

#stepConfirm {
    text-align: center;
}

#stepConfirm h2 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.mhs-confirm-details {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

#confirmDoneBtn {
    min-width: 160px;
}

.mhs-hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .mhs-hero {
        padding: 120px 0 50px;
    }

    .mhs-hero-content h1 {
        font-size: 2rem;
    }

    .mhs-hero-content p {
        font-size: 1rem;
    }

    .mhs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }

    .mhs-modal {
        padding: 1.5rem;
        max-width: 100%;
        border-radius: 16px;
    }

    .mhs-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mhs-grid {
        grid-template-columns: 1fr;
    }

    .mhs-hero-content h1 {
        font-size: 1.75rem;
    }

    .mhs-dates-row {
        gap: 0.4rem;
    }

    .mhs-date-pill {
        min-width: 68px;
        padding: 0.5rem 0.7rem;
    }
}
