* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
}


/* RUNNER */

.runner {
    background-color: #008c95;
    color: white;
    height: 40px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.runner p {
    white-space: nowrap;

    animation: move 12s linear infinite;

    font-weight: bold;
}

@keyframes move {

    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }

}


/* HEADER */

header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 20px 7%;

    background-color: white;

    box-shadow: 0 2px 10px #ddd;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #008c95;
}

.logo span {
    color: #333;
    font-size: 20px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav a:hover {
    color: #008c95;
}

.appointment-btn {
    text-decoration: none;

    background-color: #008c95;
    color: white;

    padding: 12px 20px;

    border-radius: 6px;
}


/* HERO */

.hero {
    min-height: 550px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 70px 8%;

    background-color: #eefafa;
}

.hero-text {
    width: 50%;
}

.welcome,
.section-title {
    color: #008c95;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 55px;
    color: #008c95;

    margin: 15px 0;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.hero-text > p {
    line-height: 1.7;
}

.hero-image {
    width: 50%
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
}


/* BUTTONS */

.hero-buttons,
.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.button {
    display: inline-block;

    background-color: #008c95;
    color: white;

    padding: 14px 22px;

    border-radius: 7px;

    text-decoration: none;

    font-weight: bold;
}

.button:hover {
    background-color: #006b70;
}

.contact-button {
    display: inline-block;

    padding: 12px 22px;

    border: 2px solid #008c95;

    border-radius: 7px;

    color: #008c95;

    text-decoration: none;

    font-weight: bold;
}

.contact-button:hover {
    background-color: #008c95;
    color: white;
}


/* CLINIC INFO */

.clinic-info {
    text-align: center;

    padding: 50px 20px;
}

.clinic-info h2 {
    color: #008c95;
    margin-bottom: 20px;
}

.clinic-info p {
    margin: 10px;
}


/* DOCTOR */

.doctor {
    display: flex;

    align-items: center;

    gap: 60px;

    padding: 80px 8%;

    background-color: #f7fafa;
}

.doctor-image {
    width: 40%;
}

.doctor-image img {
    width: 80%;
    border-radius: 20px;
}

.doctor-content {
    width: 60%;
}

.doctor-content h2 {
    font-size: 38px;

    color: #008c95;

    margin: 10px 0 20px;
}

.doctor-content h3 {
    font-size: 25px;

    margin-bottom: 20px;
}

.doctor-content p {
    line-height: 1.7;

    margin-bottom: 15px;
}


/* TREATMENTS */

.treatments {
    padding: 80px 8%;

    text-align: center;
}

.treatments h2 {
    font-size: 38px;

    color: #008c95;

    margin: 10px 0 40px;
}

.treatment-container {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 25px;
}

.treatment-card {
    width: 30%;
    min-width: 250px;

    padding: 30px;

    background-color: #eefafa;

    border-radius: 12px;

    transition: 0.3s;
}

.treatment-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 8px 20px #ddd;
}

.icon {
    font-size: 35px;

    margin-bottom: 15px;
}

.treatment-card h3 {
    margin-bottom: 15px;
}

.treatment-card p {
    line-height: 1.6;
}


/* CONTACT */

.contact {
    text-align: center;

    padding: 80px 8%;

    background-color: #eefafa;
}

.contact h2 {
    font-size: 38px;

    color: #008c95;

    margin: 10px 0 15px;
}

.contact-details {
    display: flex;

    justify-content: center;

    gap: 60px;

    margin-top: 40px;
}

.contact-details h3 {
    margin-bottom: 10px;
}

.contact-buttons {
    justify-content: center;
}


/* FOOTER */

footer {
    text-align: center;

    padding: 30px;

    background-color: #222;

    color: white;
}

footer p {
    margin-top: 10px;
}


/* MOBILE */

@media screen and (max-width: 700px) {

    header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-image {
        width: 100%;
    }

    .hero-image {
        margin-top: 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .doctor {
        flex-direction: column;
    }

    .doctor-image,
    .doctor-content {
        width: 100%;
    }

    .doctor-content {
        text-align: center;
    }

    .treatment-card {
        width: 100%;
    }

    .contact-details {
        flex-direction: column;
        gap: 25px;
    }

}
/* =====================================================
   HEADER BUTTONS
===================================================== */

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =====================================================
   VIEW STATUS BUTTON
===================================================== */

.status-btn {
    border: 1px solid #116e6d;
    background: #ffffff;
    color: #116e6d;
    padding: 11px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.status-btn:hover {
    background: #116e6d;
    color: #ffffff;
}


/* =====================================================
   MODAL
===================================================== */

.status-modal {
    position: fixed;
    inset: 0;

    background:
        rgba(10, 40, 45, 0.55);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 9999;
}


.status-modal.show {
    display: flex;
}


body.modal-open {
    overflow: hidden;
}


/* =====================================================
   MODAL CONTENT
===================================================== */

.status-modal-content {
    position: relative;

    width: 100%;
    max-width: 500px;

    max-height: 92vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 20px;

    padding: 32px;

    box-shadow:
        0 20px 60px
        rgba(0, 50, 60, 0.25);
}


/* =====================================================
   CLOSE
===================================================== */

.status-close {
    position: absolute;

    right: 18px;
    top: 15px;

    width: 35px;
    height: 35px;

    border: none;

    background: #f1f5f5;

    border-radius: 50%;

    font-size: 25px;

    color: #45616a;

    cursor: pointer;
}

.status-close:hover {
    background: #e4eeee;
}


/* =====================================================
   STATUS HEADER
===================================================== */

.status-header {
    text-align: center;

    margin-bottom: 25px;
}


.status-icon {
    font-size: 35px;

    margin-bottom: 8px;
}


.status-header h2 {
    margin: 0 0 7px;

    color: #123e4d;

    font-size: 25px;
}


.status-header p {
    margin: 0;

    color: #71818a;

    font-size: 14px;
}


/* =====================================================
   FORM
===================================================== */

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


.status-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #36515d;

    font-size: 14px;

    font-weight: 600;
}


.status-form-group input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border:
        1px solid #d5e1e3;

    border-radius: 9px;

    font-size: 15px;

    outline: none;
}


.status-form-group input:focus {
    border-color: #116e6d;

    box-shadow:
        0 0 0 3px
        rgba(17, 110, 109, 0.10);
}


/* =====================================================
   ERROR
===================================================== */

.status-error {
    min-height: 22px;

    color: #b42318;

    font-size: 13px;

    margin-bottom: 5px;

    text-align: center;
}


/* =====================================================
   SUBMIT
===================================================== */

.status-submit {
    width: 100%;

    height: 49px;

    border: none;

    border-radius: 9px;

    background: #116e6d;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;
}


.status-submit:hover {
    background: #0d5c5b;
}


.status-submit:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* =====================================================
   PATIENT RESULT
===================================================== */

.patient-status-result {
    margin-top: 25px;
}


.patient-result-card {
    border-top:
        1px solid #e5eeee;

    padding-top: 22px;
}


.patient-result-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 18px;
}


.patient-result-header h3 {
    margin: 0 0 4px;

    color: #123e4d;

    font-size: 21px;
}


.patient-result-header span {
    color: #71818a;

    font-size: 13px;
}


.patient-result-header strong {
    color: #116e6d;
}


/* =====================================================
   BASIC INFORMATION
===================================================== */

.patient-basic-info {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin-bottom: 25px;
}


.patient-basic-info > div {
    background: #f2f8f8;

    border-radius: 10px;

    padding: 12px;
}


.info-label {
    display: block;

    font-size: 12px;

    color: #71818a;

    margin-bottom: 4px;
}


.patient-basic-info strong {
    color: #17445b;

    font-size: 14px;
}


/* =====================================================
   APPOINTMENT HEADING
===================================================== */

.patient-result-card h4 {
    color: #173e4d;

    margin:
        0 0 12px;

    font-size: 17px;
}


/* =====================================================
   APPOINTMENT CARD
===================================================== */

.patient-appointment-card {
    border:
        1px solid #dfeaea;

    border-radius: 12px;

    padding: 15px;

    margin-bottom: 12px;

    background: #ffffff;
}


.appointment-card-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 12px;
}


.appointment-card-top strong {
    display: block;

    color: #17445b;

    font-size: 14px;
}


.appointment-card-top span:not(.patient-status-badge) {
    display: block;

    margin-top: 4px;

    color: #667980;

    font-size: 13px;
}


/* =====================================================
   STATUS BADGE
===================================================== */

.patient-status-badge {
    padding: 6px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}


.patient-status-badge.confirmed {
    background: #e4f7ed;

    color: #137333;
}


.patient-status-badge.pending {
    background: #fff5d9;

    color: #8a5b00;
}


.patient-status-badge.cancelled {
    background: #fde9e9;

    color: #b42318;
}


.patient-status-badge.completed {
    background: #e7f1f8;

    color: #175c80;
}


.patient-status-badge.absent {
    background: #fff0e5;

    color: #a84d00;
}


/* =====================================================
   APPOINTMENT DETAILS
===================================================== */

.appointment-card-details {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin-top: 15px;

    padding-top: 12px;

    border-top:
        1px solid #edf2f2;
}


.appointment-card-details span {
    display: block;

    color: #71818a;

    font-size: 12px;

    margin-bottom: 3px;
}


.appointment-card-details strong {
    color: #243f49;

    font-size: 14px;
}


/* =====================================================
   VISIT RECORD
===================================================== */

.visit-record {
    margin-top: 15px;

    padding-top: 14px;

    border-top:
        1px solid #edf2f2;
}


.visit-record h5 {
    margin:
        0 0 8px;

    color: #17445b;

    font-size: 14px;
}


.visit-record p {
    margin: 6px 0;

    color: #52666e;

    font-size: 13px;

    line-height: 1.5;
}


.review-message {
    color: #8a5b00 !important;

    font-weight: 600;
}


.completed-message {
    color: #137333 !important;

    font-weight: 600;
}


/* =====================================================
   NO APPOINTMENTS
===================================================== */

.no-appointments {
    padding: 18px;

    background: #f7fafa;

    border-radius: 10px;

    text-align: center;

    color: #71818a;

    font-size: 14px;
}


/* =====================================================
   SEARCH AGAIN
===================================================== */

.status-back-button {
    width: 100%;

    margin-top: 12px;

    padding: 11px;

    border:
        1px solid #116e6d;

    background: #ffffff;

    color: #116e6d;

    border-radius: 8px;

    font-weight: 600;

    cursor: pointer;
}


.status-back-button:hover {
    background: #f1f8f8;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .header-buttons {
        gap: 5px;
    }

    .status-btn,
    .appointment-btn {
        padding:
            9px 10px;

        font-size: 12px;
    }


    .status-modal-content {
        padding: 25px 18px;

        border-radius: 16px;
    }


    .patient-basic-info {
        grid-template-columns: 1fr;
    }


    .appointment-card-top {
        flex-direction: column;
    }


    .patient-status-badge {
        align-self: flex-start;
    }

}
/* ======================================================
   PATIENT PHOTO
====================================================== */

.patient-id-photo-area {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}


.patient-photo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


.patient-photo-preview {
    width: 90px;
    height: 90px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}


.patient-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.patient-photo-button {
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    background: #1d4ed8;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}


.patient-photo-button:hover {
    opacity: 0.9;
}
.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.shooting-stars-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    vertical-align: middle;
}

.developer-credit a {
    text-decoration: none;
    color: inherit;
}