* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    color: #162447;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
}

.appointment-page {
    width: 100%;
    overflow-x: hidden;
    background: #FFFFFF;
}

.appointment-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 74px;
    padding-right: 69px;
    display: grid;
    grid-template-columns: 624px 623px;
    justify-content: space-between;
    align-items: start;
    gap: 55px;
}

.appointment-top {
    padding-top: 187px;
    padding-bottom: 82px;
    background: #FFFFFF;
}

.records-zone {
    width: 100%;
    background: #F6F6F6;
    padding-top: 93px;
    padding-bottom: 109px;
}

.pretitle {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #145071;
    margin-bottom: 11px;
}

.appointment-left h1,
.records-left h2 {
    font-weight: 600;
    font-size: 35px;
    line-height: 52px;
    color: #000000;
    margin-bottom: 8px;
    max-width: 443px;
}

.hero-text {
    max-width: 624px;
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 38px;
}

.records-text {
    max-width: 560px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 39px;
}

.info-icon-box {
    width: 43px;
    height: 43px;
    border-radius: 7px;
    background: rgba(20, 80, 113, 0.3);
    color: #162447;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-texts h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 6px;
}

.info-texts p {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #4D4D4D;
}

.calendar-panel {
    width: 624px;
    min-height: 518px;
    background: #FFFFFF;
    border: 2px solid #DEDEDE;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    padding: 20px 24px 28px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.calendar-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000000;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
}

.calendar-title-wrap i {
    color: #0D99FF;
    font-size: 24px;
}

.calendar-month-label {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
}

.big-calendar-widget {
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
    padding: 20px;
    box-shadow: inset 0 0 0 1px rgba(46, 177, 247, 0.12);
}

.big-calendar-toolbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.calendar-nav-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #FFFFFF;
    color: #162447;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.calendar-nav-btn:hover {
    background: #f3f8ff;
}

.selected-date-label {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #162447;
}

.weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.weekday-row span {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #5f6b7a;
}

.calendar-grid-large {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 12px;
    background: #FFFFFF;
    color: #162447;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.calendar-day:hover {
    background: #2EB1F7;
    color: #FFFFFF;
}

.calendar-day.selected {
    background: #162447;
    color: #FFFFFF;
}

.calendar-day.disabled {
    background: #eef2f5;
    color: #aab4bf;
    cursor: not-allowed;
    box-shadow: none;
}

.calendar-day.disabled:hover {
    background: #eef2f5;
    color: #aab4bf;
}

/* ── Slot availability indicators ── */
.calendar-day.day-full {
    background: #fde8e8;
    color: #c62828;
    cursor: not-allowed;
    box-shadow: none;
    position: relative;
}

.calendar-day.day-full:hover {
    background: #fde8e8;
    color: #c62828;
}

.calendar-day.day-almost {
    position: relative;
}

/* Dot indicator on bottom of day cell */
.calendar-day.day-almost::after,
.calendar-day.day-full::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.calendar-day.day-almost::after {
    background: #f59e0b;
}

.calendar-day.day-full::after {
    background: #ef4444;
}

/* ── Calendar legend ── */
.calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E8EDF3;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 400;
    color: #5f6b7a;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-available {
    background: #FFFFFF;
    border: 1.5px solid #C8D6E5;
}

.dot-almost {
    background: #f59e0b;
}

.dot-full {
    background: #ef4444;
}

.calendar-day.empty {
    visibility: hidden;
    pointer-events: none;
}

.appointment-card,
.records-card {
    width: 100%;
    background: #FFFFFF;
    border: 2px solid #DEDEDE;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    padding: 20px 42px 36px;
}

.appointment-card {
    min-height: 735px;
}

.records-card {
    min-height: 768px;
}

.form-section-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 16px;
}

.service-section-title {
    margin-top: 22px;
}

.record-subtitle {
    font-weight: 300;
    font-size: 12px;
    line-height: 18px;
    color: #000000;
    margin-bottom: 26px;
}

.form-row {
    margin-top: 12px;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 244px 244px;
    gap: 39px;
}

.form-group label {
    display: block;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #272727;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(204, 204, 204, 0.972549);
    border-radius: 7px;
    padding: 9px 13px;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #162447;
    outline: none;
    transition: 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(204, 204, 204, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2EB1F7;
    box-shadow: 0 0 0 3px rgba(46, 177, 247, 0.12);
}

.form-group textarea {
    min-height: 84px;
    resize: vertical;
}

.locked-field {
    background: #f5f7fa !important;
    color: #5b6470 !important;
    cursor: not-allowed;
}

.counter {
    text-align: right;
    margin-top: 5px;
    font-weight: 400;
    font-size: 10px;
    line-height: 15px;
    color: #8C8C8C;
}

.light-box {
    width: 100%;
    min-height: 40px;
    background: #F6F6F6;
    border-radius: 7px;
    padding: 10px 14px;
    margin-top: 18px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check-row input {
    accent-color: #2EB1F7;
    margin-top: 3px;
    flex-shrink: 0;
}

.check-row span {
    font-weight: 300;
    font-size: 12px;
    line-height: 18px;
    color: #000000;
}

.service-category {
    margin-bottom: 22px;
}

.service-category-title {
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #272727;
    margin-bottom: 12px;
}

.service-grid {
    display: grid;
    grid-template-columns: 244px 244px;
    gap: 11px 35px;
}

.service-pill {
    width: 244px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(204, 204, 204, 0.972549);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.service-pill:hover {
    border-color: #2EB1F7;
    background: #F7FCFF;
}

.service-pill input {
    accent-color: #2EB1F7;
    flex-shrink: 0;
}

.service-pill span {
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #000000;
}

.primary-btn {
    width: 523px;
    height: 36px;
    margin-top: 18px;
    background: #2EB1F7;
    border: none;
    border-radius: 7px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn:hover {
    opacity: 0.95;
}

.terms-row {
    margin-top: 14px;
    align-items: flex-start;
}

.terms-row span {
    font-weight: 300;
    font-size: 12px;
    line-height: 18px;
    color: #000000;
}

.record-feature-grid {
    display: grid;
    grid-template-columns: 303px 303px;
    gap: 19px 23px;
    margin-top: 18px;
}

.record-feature-card {
    width: 303px;
    min-height: 170px;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 18px 20px 20px;
}

.record-feature-card .info-icon-box {
    margin-bottom: 18px;
}

.record-feature-card h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 5px;
}

.record-feature-card p {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #4D4D4D;
}

.floating-alert {
    position: fixed;
    top: 120px;
    right: 24px;
    z-index: 9999;
    min-width: 280px;
    max-width: 380px;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.35s ease;
}

.floating-alert.success {
    background: #e5ffe8;
    color: #1d7c35;
}

.floating-alert.error {
    background: #ffe3e3;
    color: #9b1c1c;
}

.floating-alert.warning {
    background: #fff7d6;
    color: #8a6500;
}

.floating-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.floating-alert.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.footer {
    width: 100%;
    background: #162447;
    color: #FFFFFF;
    padding: 50px 40px 20px;
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section {
    flex: 1.3;
    min-width: 220px;
}

.footer-logo-section img {
    width: 230px;
    max-width: 100%;
    height: auto;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.social-icons a {
    color: #FFFFFF;
    font-size: 24px;
}

.footer-links,
.footer-contact,
.footer-visit {
    padding-top: 8px;
}

.footer-links {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}

.footer-contact,
.footer-visit {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact h3,
.footer-visit h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.footer-contact p,
.footer-visit p {
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
}

.footer-copy {
    text-align: center;
    margin-top: 32px;
    font-weight: 400;
    font-size: 11px;
    line-height: 16px;
    color: #FFFFFF;
}

@media (max-width: 1399px) {
    .appointment-shell {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .appointment-left,
    .appointment-right,
    .records-left,
    .records-right {
        width: 100%;
    }

    .calendar-panel,
    .appointment-card,
    .records-card {
        width: 100%;
        max-width: 100%;
    }

    .primary-btn {
        width: 100%;
    }

    .service-grid,
    .form-row.two-col,
    .record-feature-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .service-pill,
    .record-feature-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .appointment-top {
        padding-top: 130px;
        padding-bottom: 60px;
    }

    .records-zone {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .appointment-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .appointment-left h1,
    .records-left h2 {
        font-size: 30px;
        line-height: 1.3;
        max-width: 100%;
    }

    .hero-text {
        font-size: 16px;
        line-height: 24px;
    }

    .service-grid,
    .form-row.two-col,
    .record-feature-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .big-calendar-toolbar {
        grid-template-columns: 40px 1fr 40px;
    }

    .calendar-day {
        font-size: 13px;
    }

    .floating-alert {
        right: 16px;
        left: 16px;
        min-width: unset;
        max-width: unset;
        top: 100px;
    }

    .footer {
        padding: 32px 16px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 28px;
    }

    .footer-logo-section,
    .footer-links,
    .footer-contact,
    .footer-visit {
        width: 100%;
        min-width: unset;
    }

    .footer-logo-section img {
        width: 180px;
    }

    .footer-links a,
    .footer-contact h3,
    .footer-visit h3,
    .footer-contact p,
    .footer-visit p {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-copy {
        margin-top: 24px;
        font-size: 10px;
        line-height: 15px;
    }
}

/* Appointment Summary Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #FFFFFF;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #162447;
    border-bottom: 2px solid #F6F6F6;
    padding-bottom: 10px;
}

.summary-item {
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-item strong {
    color: #145071;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-confirm {
    background: #2EB1F7;
    color: white;
}

.btn-cancel {
    background: #DEDEDE;
    color: #162447;
}
/* Add to index.css, services.css, about.css, appointment.css */

/* Fade-in animation on page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out animation on page exit */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

main, .homepage, .services-page, .about-page, .appointment-page {
    animation: fadeIn 0.5s ease-in-out;
}

body.fade-out main {
    animation: fadeOut 0.3s ease-in-out forwards;
}