body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f7f9fb;
    color: #1f2933;
}

/* HEADER */

/* Small bar at the very top */

.utility-bar {
    background-color: #0f4c5c;
    color: #ffffff;
}

.utility-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.utility-bar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.utility-bar a:hover {
    text-decoration: underline;
}


/* Patient Login button */

.login-button {
    background-color: #ffffff;
    color: #0f4c5c !important;

    padding: 8px 16px;
    border-radius: 20px;
}

.login-button:hover {
    background-color: #e9f5f9;
    text-decoration: none !important;
}


/* Main navigation */

.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #d9e2ec;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    color: #0f4c5c;
    font-size: 28px;
}

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 24px;

    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #334e68;
    font-weight: 600;
}

.nav-links a:hover {
    color: #0f4c5c;
}

/* HERO SECTION */

.hero {
    min-height: 520px;

    display: flex;
    align-items: center;

    background-image:
    linear-gradient(
        90deg,
        rgba(233, 245, 249, 0.94) 0%,
        rgba(233, 245, 249, 0.82) 30%,
        rgba(233, 245, 249, 0.35) 55%,
        rgba(233, 245, 249, 0.02) 100%
    ),
    url("../images/medical-hero.jpg");

    background-size: cover;
    background-position: center;

    border-radius: 24px;

    margin-top: 40px;
    margin-bottom: 60px;

    overflow: hidden;
}

.hero-content {
    max-width: 520px;
    padding: 60px;
}

.hero-label {
    display: inline-block;

    background-color: #ffffff;
    color: #0f4c5c;

    padding: 8px 14px;
    border-radius: 20px;

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 20px;
}

.hero h2 {
    font-size: 48px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #102a43;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    color: #334e68;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.primary-button,
.secondary-button {
    display: inline-block;

    padding: 14px 24px;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;
}

.primary-button {
    background-color: #0f4c5c;
    color: #ffffff;
}

.secondary-button {
    background-color: #ffffff;
    border: 2px solid #0f4c5c;
    color: #0f4c5c;
}

.primary-button:hover {
    background-color: #0b3b47;
}

.secondary-button:hover {
    background-color: #dceef3;
}


/* HERO IMAGE */

.hero-image {
    height: 100%;
    min-height: 520px;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.services-section {
    padding: 70px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 36px;
    margin-bottom: 12px;
    color: #102a43;
}

.section-heading p {
    font-size: 18px;
    color: #486581;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #d9e2ec;
}

.service-card h3 {
    margin-top: 0;
    color: #0f4c5c;
    font-size: 22px;
}

.service-card p {
    color: #486581;
    line-height: 1.6;
}

/* WHY CHOOSE HEALTHBRIDGE SECTION */

.why-us {
    padding: 70px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-us-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #d9e2ec;
    text-align: center;
}

.why-us-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;

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

    background-color: #0f4c5c;
    color: #ffffff;

    border-radius: 50%;
    font-size: 30px;
}

.why-us-item h3 {
    color: #0f4c5c;
    font-size: 21px;
    margin-top: 0;
    margin-bottom: 12px;
}

.why-us-item p {
    color: #486581;
    line-height: 1.6;
}

/* FOOTER */

footer {
    margin-top: 60px;
}

.footer-main {
    background-color: #12344d;
    color: #ffffff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;

    padding: 55px 24px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand {
    max-width: 420px;
}

.footer-brand h2 {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 26px;
}

.footer-brand p {
    color: #d9e2ec;
    line-height: 1.6;
}


/* Footer links */

.footer-links {
    display: flex;
    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 16px 24px;

    max-width: 600px;
}

.footer-links a {
    color: #ffffff;

    text-decoration: none;

    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* Copyright area */

.footer-bottom {
    background-color: #0b2538;

    color: #ffffff;

    text-align: center;

    padding: 22px 24px;
}

.footer-bottom p {
    margin: 0;

    font-size: 14px;
    color: #d9e2ec;
}

/* GENERAL INNER PAGE HEADING */

.page-heading {
    text-align: center;
    padding: 60px 20px 40px;
}

.page-heading h2 {
    font-size: 42px;
    color: #102a43;
    margin-bottom: 15px;
}

.page-heading p {
    font-size: 18px;
    color: #486581;
}


/* ABOUT PAGE */

.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 60px;

    display: grid;
    gap: 24px;
}

.about-card {
    background-color: #ffffff;

    padding: 35px;

    border: 1px solid #d9e2ec;
    border-radius: 12px;
}

.about-card h2 {
    color: #0f4c5c;

    font-size: 28px;

    margin-top: 0;
    margin-bottom: 15px;
}

.about-card p {
    color: #486581;

    font-size: 18px;
    line-height: 1.8;

    margin: 0;
}

/* SERVICES PAGE */

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;

    padding-bottom: 70px;
}

.services-page-card {
    background-color: #ffffff;

    padding: 35px;

    border: 1px solid #d9e2ec;
    border-radius: 12px;
}

.services-page-card h2 {
    color: #0f4c5c;

    font-size: 26px;

    margin-top: 0;
    margin-bottom: 15px;
}

.services-page-card p {
    color: #486581;
    line-height: 1.7;
}

.services-page-card ul {
    color: #486581;

    padding-left: 20px;

    line-height: 1.9;
}


/* Appointment call-to-action */

.services-appointment {
    background-color: #e9f5f9;

    text-align: center;

    padding: 50px 30px;

    border-radius: 16px;

    margin-bottom: 60px;
}

.services-appointment h2 {
    color: #102a43;

    font-size: 32px;

    margin-top: 0;
}

.services-appointment p {
    color: #486581;

    font-size: 18px;

    margin-bottom: 25px;
}

/* CONTACT PAGE */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;

    padding-bottom: 70px;
}


/* Contact information card */

.contact-info {
    background-color: #e9f5f9;

    padding: 35px;

    border-radius: 16px;
}

.contact-info h2 {
    color: #102a43;

    margin-top: 0;
    margin-bottom: 30px;
}

.contact-info-item {
    margin-bottom: 28px;
}

.contact-info-item h3 {
    color: #0f4c5c;

    margin-bottom: 8px;
}

.contact-info-item p {
    color: #486581;

    margin: 5px 0;

    line-height: 1.6;
}


/* Contact form */

.contact-form-container {
    background-color: #ffffff;

    padding: 35px;

    border: 1px solid #d9e2ec;
    border-radius: 16px;
}

.contact-form-container h2 {
    color: #102a43;

    margin-top: 0;
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #334e68;

    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 14px;

    border: 1px solid #bcccdc;
    border-radius: 8px;

    font-family: Arial, sans-serif;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;

    border-color: #0f4c5c;
}

.form-group textarea {
    resize: vertical;
}

.form-button {
    border: none;
    cursor: pointer;

    width: fit-content;
}

/* APPOINTMENT PAGE */

.appointment-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 40px;

    padding-bottom: 70px;
}


/* Appointment information */

.appointment-info {
    background-color: #e9f5f9;

    padding: 35px;

    border-radius: 16px;
}

.appointment-info h2 {
    color: #102a43;

    margin-top: 0;
    margin-bottom: 20px;
}

.appointment-info > p {
    color: #486581;

    line-height: 1.7;

    margin-bottom: 30px;
}

.appointment-info-item {
    margin-top: 30px;
}

.appointment-info-item h3 {
    color: #0f4c5c;

    margin-bottom: 10px;
}

.appointment-info-item p {
    color: #486581;

    line-height: 1.6;

    margin: 5px 0;
}


/* Appointment form */

.appointment-form-container {
    background-color: #ffffff;

    padding: 35px;

    border: 1px solid #d9e2ec;
    border-radius: 16px;
}

.appointment-form-container h2 {
    color: #102a43;

    margin-top: 0;
    margin-bottom: 30px;
}

.appointment-form {
    display: grid;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group select {
    padding: 14px;

    border: 1px solid #bcccdc;
    border-radius: 8px;

    background-color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 16px;
}

.form-group select:focus {
    outline: none;
    border-color: #0f4c5c;
}

/* PRIVACY POLICY / LEGAL PAGES */

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 70px;
}

.policy-card {
    background-color: #ffffff;

    padding: 40px;

    border: 1px solid #d9e2ec;
    border-radius: 16px;
}

.policy-updated {
    color: #829ab1;

    font-size: 15px;

    margin-top: 0;
    margin-bottom: 30px;
}

.policy-card h2 {
    color: #0f4c5c;

    font-size: 24px;

    margin-top: 35px;
    margin-bottom: 12px;
}

.policy-card h2:first-of-type {
    margin-top: 0;
}

.policy-card p {
    color: #486581;

    font-size: 17px;
    line-height: 1.8;
}

.policy-card .primary-button {
    margin-top: 15px;
}

/* ========================================
   PATIENT LOGIN PAGE
======================================== */

.login-page {
    min-height: 650px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 70px 20px;
}


/* Login heading */

.login-heading {
    text-align: center;
    margin-bottom: 25px;
}

.login-heading h2 {
    color: #102a43;
    font-size: 38px;

    margin: 0 0 10px;
}

.login-heading p {
    color: #486581;
    font-size: 17px;

    margin: 0;
}


/* Login card */

.login-page .form {
    display: flex;
    flex-direction: column;

    gap: 14px;

    background-color: #ffffff;

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

    padding: 40px;

    border: 1px solid #d9e2ec;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);

    box-sizing: border-box;
}


/* Labels */

.login-page .flex-column {
    display: flex;
    flex-direction: column;
}

.login-page .flex-column label {
    color: #334e68;

    font-size: 15px;
    font-weight: 600;
}


/* Input containers */

.login-page .inputForm {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;

    padding: 0 14px;

    background-color: #ffffff;

    border: 1.5px solid #bcccdc;
    border-radius: 10px;

    box-sizing: border-box;

    transition: 0.2s ease-in-out;
}

.login-page .inputForm:focus-within {
    border-color: #0f4c5c;

    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.08);
}

.login-page .inputForm svg {
    fill: #486581;

    flex-shrink: 0;
}


/* Actual input */

.login-page .input {
    width: 100%;
    height: 100%;

    margin-left: 10px;

    border: none;
    outline: none;

    background: transparent;

    color: #102a43;

    font-family: Arial, sans-serif;
    font-size: 15px;
}

.login-page .input::placeholder {
    color: #829ab1;
}


/* Eye button */

.login-page .password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5px;

    border: none;

    background-color: transparent;

    cursor: pointer;
}

.login-page .password-toggle svg {
    fill: #486581;
}


/* Remember / Forgot password row */

.login-page .flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.login-page .remember-me {
    display: flex;
    align-items: center;

    gap: 6px;
}

.login-page .remember-me label {
    color: #486581;

    font-size: 14px;
}

.login-page .span {
    color: #0f4c5c;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.login-page .span:hover {
    text-decoration: underline;
}


/* Sign in */

.login-page .button-submit {
    width: 100%;
    height: 50px;

    margin-top: 12px;

    border: none;
    border-radius: 10px;

    background-color: #0f4c5c;
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease-in-out;
}

.login-page .button-submit:hover {
    background-color: #0b3b47;
}


/* Bottom text */

.login-page .p {
    margin: 4px 0;

    text-align: center;

    color: #486581;

    font-size: 14px;
}

.login-page .line {
    margin-top: 12px;
}


/* Google / Apple buttons */

.login-page .social-login {
    width: 100%;
}

.login-page .btn {
    width: 100%;
    height: 50px;

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

    gap: 10px;

    border: 1px solid #d9e2ec;
    border-radius: 10px;

    background-color: #ffffff;
    color: #334e68;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease-in-out;
}

.login-page .btn:hover {
    border-color: #0f4c5c;

    background-color: #f7f9fb;
}


/* Mobile */

@media (max-width: 600px) {

    .login-page {
        padding: 50px 15px;
    }

    .login-page .form {
        padding: 30px 22px;
    }

    .login-heading h2 {
        font-size: 32px;
    }

    .login-page .social-login {
        flex-direction: column;
    }
}

/* ========================================
   REGISTER PAGE
======================================== */

.register-page {
    min-height: 700px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 70px 20px;
}

.register-form {
    width: 100%;
    max-width: 560px;

    display: flex;
    flex-direction: column;

    gap: 18px;

    padding: 40px;

    background-color: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);

    box-sizing: border-box;
}

.register-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.register-field label {
    color: #334e68;

    font-size: 15px;
    font-weight: 600;
}

.register-field input {
    height: 52px;

    padding: 0 14px;

    border: 1.5px solid #bcccdc;
    border-radius: 10px;

    box-sizing: border-box;

    font-family: Arial, sans-serif;
    font-size: 15px;

    color: #102a43;
}

.register-field input:focus {
    outline: none;

    border-color: #0f4c5c;

    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.08);
}

.register-field input::placeholder {
    color: #829ab1;
}


/* Password field with eye button */

.register-password-wrapper {
    height: 52px;

    display: flex;
    align-items: center;

    border: 1.5px solid #bcccdc;
    border-radius: 10px;

    background-color: #ffffff;
}

.register-password-wrapper:focus-within {
    border-color: #0f4c5c;

    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.08);
}

.register-password-wrapper input {
    width: 100%;
    height: 100%;

    border: none;

    box-shadow: none;
}

.register-password-wrapper input:focus {
    border: none;

    box-shadow: none;
}

.register-password-wrapper .password-toggle {
    margin-right: 8px;
}


/* Agreement */

.register-agreement {
    display: flex;
    align-items: flex-start;

    gap: 8px;
}

.register-agreement input {
    margin-top: 3px;
}

.register-agreement label {
    color: #486581;

    font-size: 14px;
    line-height: 1.5;
}

.register-agreement a {
    color: #0f4c5c;

    font-weight: 600;

    text-decoration: none;
}

.register-agreement a:hover {
    text-decoration: underline;
}


/* Mobile */

@media (max-width: 600px) {

    .register-form {
        padding: 30px 22px;
    }

    .register-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FORGOT PASSWORD PAGE
======================================== */

.forgot-password-page {
    min-height: 620px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 70px 20px;
}

.forgot-password-form {
    width: 100%;
    max-width: 460px;

    display: flex;
    flex-direction: column;

    gap: 20px;

    padding: 40px;

    background-color: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);

    box-sizing: border-box;
}

.forgot-password-form .p {
    text-align: center;

    color: #486581;

    font-size: 14px;

    margin: 5px 0;
}

.forgot-password-form .span {
    color: #0f4c5c;

    font-weight: 600;

    text-decoration: none;
}

.forgot-password-form .span:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {

    .forgot-password-form {
        padding: 30px 22px;
    }
}

/* ========================================
   REGISTER FORM MESSAGES
======================================== */

.register-message {
    margin: 5px 0 0;

    padding: 12px 14px;

    border-radius: 8px;

    font-size: 14px;
    line-height: 1.5;

    text-align: center;
}

.error-message {
    background-color: #fff1f0;

    border: 1px solid #f5c2c0;

    color: #9b2c2c;
}

.success-message {
    background-color: #edf8f3;

    border: 1px solid #b7dfcc;

    color: #276749;
}

/* ========================================
   CONTACT FORM MESSAGES
======================================== */

.contact-message {
    margin: 5px 0 0;

    padding: 12px 14px;

    border-radius: 8px;

    font-size: 14px;
    line-height: 1.5;

    text-align: center;
}

/* ========================================
   APPOINTMENT FORM MESSAGES
======================================== */

.appointment-message {
    margin: 5px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* =========================
   Patient Dashboard
========================= */

.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.dashboard-welcome {
    margin-bottom: 30px;
}

.dashboard-welcome h2 {
    color: #102a43;
    font-size: 32px;
    margin-bottom: 10px;
}

.dashboard-welcome p {
    color: #486581;
    font-size: 17px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-section {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(16, 42, 67, 0.08);
}

.dashboard-section h3 {
    color: #102a43;
    margin-bottom: 18px;
    font-size: 21px;
}

.dashboard-section p {
    color: #486581;
    line-height: 1.6;
    margin-bottom: 12px;
}

.dashboard-empty {
    margin-bottom: 20px;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-action-link {
    display: block;
    padding: 12px 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    color: #0f4c5c;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

.dashboard-action-link:hover {
    background: #f7f9fb;
    border-color: #0f4c5c;
}

.dashboard-button {
    display: inline-block;
    background: #0f4c5c;
    color: #ffffff;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s ease;
}

.dashboard-button:hover {
    opacity: 0.9;
}

.dashboard-logout {
    background: #102a43;
}

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

    .dashboard-page {
        padding: 40px 16px;
    }

    .dashboard-welcome h2 {
        font-size: 27px;
    }
}

/* =========================
   Membership Page
========================= */

.membership-hero {
    background: #eef6f7;
    padding: 70px 20px 55px;
    text-align: center;
}

.membership-hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.membership-eyebrow {
    display: inline-block;
    color: #0f4c5c;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.membership-hero h2 {
    color: #102a43;
    font-size: 38px;
    margin-bottom: 16px;
}

.membership-hero p {
    color: #486581;
    font-size: 18px;
    line-height: 1.7;
}

.membership-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.membership-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 5px 18px rgba(16, 42, 67, 0.08);
    display: flex;
    flex-direction: column;
}

.membership-card.featured {
    border: 2px solid #0f4c5c;
    transform: translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f4c5c;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.membership-card h3 {
    color: #102a43;
    font-size: 26px;
    margin-bottom: 12px;
}

.membership-description {
    color: #486581;
    line-height: 1.6;
    min-height: 78px;
}

.membership-price {
    margin-top: 24px;
    margin-bottom: 5px;
}

.price {
    color: #102a43;
    font-size: 42px;
    font-weight: bold;
}

.price-period {
    color: #486581;
}

.annual-price {
    color: #486581;
    font-size: 14px;
    margin-bottom: 24px;
}

.membership-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex-grow: 1;
}

.membership-benefits li {
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
    color: #486581;
}

.membership-benefits li::before {
    content: "✓";
    color: #0f4c5c;
    font-weight: bold;
    margin-right: 10px;
}

.membership-button {
    display: block;
    text-align: center;
    background: #0f4c5c;
    color: #ffffff;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s ease;
}

.membership-button:hover {
    opacity: 0.9;
}

.membership-disclaimer {
    margin-top: 55px;
    background: #f7f9fb;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    padding: 24px;
}

.membership-disclaimer h3 {
    color: #102a43;
    margin-bottom: 10px;
}

.membership-disclaimer p {
    color: #486581;
    line-height: 1.6;
}

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

    .membership-card.featured {
        transform: none;
    }
}

@media (max-width: 600px) {
    .membership-hero h2 {
        font-size: 30px;
    }

    .membership-page {
        padding: 40px 16px;
    }
}

/* =========================
   Dashboard Appointments
========================= */

.dashboard-success {
    background: #e7f6ef;
    border: 1px solid #b7dfcc;
    color: #245c44;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.appointment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}

.appointment-item {
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 18px;
    background: #f7f9fb;
}

.appointment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.appointment-item-header h4 {
    color: #102a43;
    margin: 0;
}

.appointment-status {
    background: #e7f6ef;
    color: #245c44;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.appointment-item p {
    margin: 7px 0;
}

/* =========================
   Cancel Appointment
========================= */

.cancel-appointment-form {
    margin-top: 16px;
}

.dashboard-cancel {
    background: #8b2f2f;
}

.dashboard-cancel:hover {
    opacity: 0.9;
}

/* =========================
   Membership Checkout
========================= */

.checkout-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.checkout-summary,
.checkout-payment {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 14px rgba(16, 42, 67, 0.08);
}

.checkout-summary h3,
.checkout-payment h3 {
    color: #102a43;
    font-size: 22px;
    margin-bottom: 22px;
}

.checkout-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #d9e2ec;
}

.checkout-label {
    display: block;
    color: #486581;
    font-size: 14px;
    margin-bottom: 6px;
}

.checkout-plan h2 {
    color: #102a43;
    margin: 0;
}

.checkout-price {
    color: #0f4c5c;
    font-size: 28px;
    font-weight: bold;
    white-space: nowrap;
}

.checkout-price span {
    color: #486581;
    font-size: 14px;
    font-weight: normal;
}

.checkout-details {
    margin-top: 22px;
}

.checkout-details p {
    color: #486581;
    margin-bottom: 14px;
    line-height: 1.5;
}

.checkout-test-notice {
    background: #f7f9fb;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.checkout-test-notice strong {
    color: #102a43;
}

.checkout-test-notice p {
    color: #486581;
    line-height: 1.5;
    margin: 6px 0 0;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-form .register-field {
    margin-bottom: 0;
}

@media (max-width: 768px) {

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

    .checkout-form-row {
        grid-template-columns: 1fr;
    }

    .checkout-plan {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================
   Checkout Submit Button
========================= */

.checkout-form .button-submit {
    width: 100%;
    background: #0f4c5c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.checkout-form .button-submit:hover {
    opacity: 0.9;
}

/* ========================================
   RESPONSIVE / MOBILE DESIGN
======================================== */

/* Prevent elements from accidentally
   becoming wider than the screen */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    /* HEADER */

    .utility-content {
        padding: 10px 18px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .utility-left,
    .utility-right {
        flex-wrap: wrap;
        gap: 12px;
    }

    nav {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px 20px;
    }


    /* HOMEPAGE */

    .hero {
        min-height: auto;
        margin-top: 25px;
        margin-bottom: 40px;
        background-position: center;
    }

    .hero-content {
        max-width: 600px;
        padding: 45px 35px;
    }

    .hero h2 {
        font-size: 40px;
    }

    .services-grid,
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* INNER PAGE GRIDS */

    .services-page-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-layout,
    .appointment-layout {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}


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

@media (max-width: 600px) {

    /* GENERAL */

    main {
        width: 100%;
        padding: 30px 16px;
    }


    /* TOP UTILITY BAR */

    .utility-content {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .utility-left,
    .utility-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .utility-bar a,
    .utility-bar span {
        font-size: 13px;
    }

    .login-button {
        padding: 7px 13px;
    }


    /* MAIN NAVIGATION */

    nav {
        width: 100%;
        padding: 16px;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    .logo h1 {
        font-size: 25px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 14px;
        white-space: nowrap;
    }


    /* HOMEPAGE HERO */

    .hero {
        min-height: auto;
        margin: 20px 0 40px;
        border-radius: 16px;

        background-image:
        linear-gradient(
            rgba(233, 245, 249, 0.88),
            rgba(233, 245, 249, 0.88)
        ),
        url("../images/medical-hero.jpg");

        background-position: center;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        padding: 40px 24px;
    }

    .hero h2 {
        font-size: 36px;
        line-height: 1.15;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }


    /* SECTION HEADINGS */

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .section-heading p {
        font-size: 16px;
    }


    /* HOMEPAGE CARDS */

    .services-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .why-us-item {
        padding: 24px;
    }


    /* PAGE HEADINGS */

    .page-heading {
        padding: 40px 16px 25px;
    }

    .page-heading h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    .page-heading p {
        font-size: 16px;
        line-height: 1.5;
    }


    /* ABOUT */

    .about-section {
        width: 100%;
        padding: 10px 0 40px;
    }

    .about-card {
        width: 100%;
        padding: 24px;
    }

    .about-card h2 {
        font-size: 24px;
    }

    .about-card p {
        font-size: 16px;
    }


    /* SERVICES */

    .services-page-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 40px;
    }

    .services-page-card {
        width: 100%;
        padding: 24px;
    }

    .services-appointment {
        padding: 35px 20px;
        margin-bottom: 40px;
    }

    .services-appointment h2 {
        font-size: 27px;
    }


    /* CONTACT */

    .contact-layout {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 40px;
    }

    .contact-info,
    .contact-form-container {
        width: 100%;
        padding: 24px;
    }


    /* APPOINTMENTS */

    .appointment-layout {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 40px;
    }

    .appointment-info,
    .appointment-form-container {
        width: 100%;
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    /* ALL FORM ELEMENTS */

    .form-group,
    .register-field {
        width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .form-group select,
    .register-field input {
        width: 100%;
        max-width: 100%;
    }

    .form-button {
        width: 100%;
        text-align: center;
    }


    /* LEGAL / PRIVACY / TERMS */

    .policy-container {
        width: 100%;
        padding-bottom: 40px;
    }

    .policy-card {
        width: 100%;
        padding: 24px;
    }

    .policy-card h2 {
        font-size: 22px;
    }

    .policy-card p {
        font-size: 16px;
        line-height: 1.7;
    }


    /* LOGIN */

    .login-page {
        min-height: auto;
        padding: 40px 16px;
    }

    .login-page .form {
        width: 100%;
        padding: 26px 20px;
    }

    .login-heading h2 {
        font-size: 30px;
    }


    /* REGISTER */

    .register-page {
        min-height: auto;
        padding: 40px 16px;
    }

    .register-form {
        width: 100%;
        padding: 26px 20px;
    }

    .register-form .form-row {
        grid-template-columns: 1fr;
    }


    /* FORGOT PASSWORD */

    .forgot-password-page {
        min-height: auto;
        padding: 40px 16px;
    }

    .forgot-password-form {
        width: 100%;
        padding: 26px 20px;
    }


    /* DASHBOARD */

    .dashboard-page {
        width: 100%;
        padding: 35px 16px;
    }

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

    .dashboard-section {
        width: 100%;
        padding: 22px;
    }

    .appointment-item-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-button {
        width: 100%;
        text-align: center;
    }


    /* MEMBERSHIP */

    .membership-hero {
        padding: 45px 16px 35px;
    }

    .membership-hero h2 {
        font-size: 30px;
    }

    .membership-hero p {
        font-size: 16px;
    }

    .membership-page {
        width: 100%;
        padding: 40px 16px;
    }

    .membership-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .membership-card {
        width: 100%;
        padding: 26px;
    }

    .membership-card.featured {
        transform: none;
    }

    .membership-description {
        min-height: auto;
    }

    .price {
        font-size: 38px;
    }


    /* CHECKOUT */

    .checkout-container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkout-summary,
    .checkout-payment {
        width: 100%;
        padding: 22px;
    }

    .checkout-form-row {
        grid-template-columns: 1fr;
    }

    .checkout-plan {
        flex-direction: column;
        align-items: flex-start;
    }


    /* FOOTER */

    footer {
        margin-top: 40px;
    }

    .footer-content {
        padding: 40px 20px;
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .footer-bottom {
        padding: 20px;
    }
}

/* Membership terms / footer text visibility */

.membership-disclaimer,
.membership-disclaimer h3,
.membership-disclaimer p {
    color: #486581;
}

.membership-disclaimer h3 {
    color: #102a43;
}

.footer-brand h2 {
    color: #ffffff;
}

.footer-brand p,
.footer-links a {
    color: #ffffff;
}
