@import url("https://fonts.googleapis.com/css2?family=Changa:wght@500;700&family=Tajawal:wght@300;400;700&display=swap");

* {
    padding: 0px;
    margin: 0px;
    border: none;
    outline: none;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f8fafc;
    color: #0f172a;
    font-family: "Tajawal", sans-serif;
}

p {
    color: #334155;
}

:root {
    --first--color: #0f172a;
    --second--color: #334155;
    --third--color: #ffffff;
    --background--color: #1d4ed8;
    --accent--color: #0ea5a5;
    --sand--color: #f8fafc;
}

.top-header {
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 0;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
}

nav ul {
    display: flex;
    gap: 24px;
    margin-top: 0;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--second--color);
    font-weight: 600;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--background--color);
}

.nav-close {
    display: none;
}

.nav-close button {
    background: transparent;
    font-size: 22px;
    color: var(--second--color);
    cursor: pointer;
}

.top-header h2 {
    margin: 0;
    font-family: "Changa", sans-serif;
}

.top-header h2 i {
    color: var(--background--color);
}

.brand-title {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

#home {
    background-image: url('/imgs/reception.jpg');
    background-size: cover;
    background-position: center;
    height: 92vh;
    position: relative;
}

#home::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.85), rgba(30, 64, 175, 0.7));
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
    text-align: center;
    padding: 0 1.5rem;
    animation: revealUp 0.8s ease both;
}

.hero-content h1 {
    font-family: "Changa", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0.8rem 0 1rem;
}

.hero-content p {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.9;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-stat {
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-stat h3 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.hero-stat span {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.section {
    padding: 4rem 1.5rem;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-head h2 {
    font-family: "Changa", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    justify-items: stretch;
}

.service-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: revealUp 0.8s ease both;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.16);
}

.service-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.service-body h3 {
    font-family: "Changa", sans-serif;
    font-size: 1.2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--background--color);
    color: var(--background--color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-link:hover {
    background: var(--background--color);
    color: #fff;
}

#contact {
    justify-items: center;
    padding-bottom: 2rem;
}

.contact {
    background-color: #f8fafc;
    direction: rtl;
    margin-bottom: 5rem;
}

.steps-section {
    background: linear-gradient(120deg, #eff6ff, #f8fafc);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease;
    animation: revealUp 0.8s ease both;
}

.step-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: #0ea5a5;
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-family: "Changa", sans-serif;
    margin-bottom: 0.6rem;
}

.step-card:hover {
    transform: translateY(-6px);
}

.reviews-section {
    background: #eef2ff;
}

.review-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    justify-items: stretch;
}

.review-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: revealUp 0.8s ease both;
}

.review-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.review-body {
    text-align: right;
}

.review-body h6 {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.review-stars {
    color: #f59e0b;
    margin-top: 0.5rem;
}

.footer {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer h4,
.footer h5 {
    font-family: "Changa", sans-serif;
}

.footer a:hover {
    color: #0d6efd !important;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    max-width: 90%;
    margin: auto;
}

.contact-form {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #d0d7e2;
    border-radius: 12px;
    font-family: "Tajawal", sans-serif;
    background: #f8fafc;
}

.contact-form button {
    background-color: var(--background--color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #0044cc;
}

.contact-info {
    flex: 1 1 45%;
    background-color: #f1f5f9;
    padding: 2rem;
    border-radius: 16px;
    font-size: 1rem;
}

.contact-info h4 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background-color: var(--third--color);
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.5s ease;
        z-index: 1000;
    }

    nav ul.active {
        max-height: 500px;
        opacity: 1;
    }

    nav ul li {
        padding: 15px;
        border-top: 1px solid #ccc;
        text-align: center;
    }

    .nav-close {
        display: flex;
        justify-content: flex-start;
        border-top: none;
        padding: 12px 18px;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        margin: 10px 20px;
    }

    .top-header {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .header-actions .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .service-container {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .review-container {
        grid-template-columns: 1fr;
    }

    .one,
    .two,
    .three {
        width: 100%;
    }

    .service-container button {
        margin: 10px auto;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form,
    .contact-info {
        flex: 1 1 100%;
    }
}

.account-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #f5f7ff, #eef2ff);
    text-align: center;
}

.account-header h2 {
    margin-bottom: 0.5rem;
}

.account-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.account-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.auth-body {
    background: radial-gradient(circle at top, #f8fafc, #e2e8f0 60%, #cbd5f5 120%);
    min-height: 100vh;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
}

.auth-info {
    background: linear-gradient(150deg, #1e3a8a, #0f172a);
    color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
}

.auth-info h1 {
    font-size: 2rem;
    margin: 1rem 0;
}

.auth-info p {
    color: #cbd5f5;
    line-height: 1.8;
}

.auth-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-stats h3 {
    margin: 0;
    font-size: 1.7rem;
}

.auth-stats span {
    color: #dbe3ff;
    font-size: 0.9rem;
}

.auth-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    width: 100%;
}

.auth-toggle,
.role-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.auth-toggle button,
.role-toggle button {
    border: 1px solid #cbd5f5;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-toggle button.active,
.role-toggle button.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.3);
}

.schedule-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.time-slot {
    cursor: pointer;
}

.time-slot.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
}

.btn-primary {
    background: var(--background--color);
    border-color: var(--background--color);
}

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

@media (max-width: 768px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-info {
        text-align: center;
    }

    .auth-stats {
        grid-template-columns: 1fr;
    }
    .account-cards {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .provider-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}