* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    color: #000000;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.about-page {
    width: 100%;
    overflow-x: hidden;
}

/* HERO */
.about-hero {
    padding: 180px 40px 90px;
    background: #FFFFFF;
}

.about-hero-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #DFE8FF;
    color: #162447;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 18px;
}

.dark-badge {
    background: rgba(46, 177, 247, 0.4);
    color: #FFFFFF;
}

.about-hero-text h1 {
    font-weight: 600;
    font-size: 50px;
    line-height: 1.25;
    color: #162447;
    margin-bottom: 18px;
}

.about-hero-text p {
    font-weight: 300;
    font-size: 22px;
    line-height: 1.5;
    color: #000000;
    max-width: 720px;
}

.about-hero-image img {
    width: 100%;
    max-width: 512px;
    margin-left: auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    object-fit: cover;
}

/* SHARED */
.section-header {
    max-width: 900px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header h2 {
    font-weight: 600;
    font-size: 35px;
    line-height: 52px;
    color: #000000;
    margin-bottom: 8px;
}

.section-header p {
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
}

/* OUR STORY */
.our-story-section {
    background: #F6F6F6;
    padding: 65px 40px 90px;
}

.story-design-card {
    max-width: 1240px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    box-shadow: 0 8px 24px rgba(22, 36, 71, 0.08);
}

.story-left {
    position: relative;
    background: linear-gradient(135deg, rgba(46, 177, 247, 0.08), rgba(22, 36, 71, 0.03));
    border-radius: 20px;
    padding: 34px 32px;
    overflow: hidden;
}

.story-accent {
    width: 90px;
    height: 6px;
    background: #2EB1F7;
    border-radius: 50px;
    margin-bottom: 18px;
}

.story-left h3 {
    font-weight: 600;
    font-size: 30px;
    line-height: 1.3;
    color: #162447;
    margin-bottom: 16px;
    max-width: 520px;
}

.story-left p {
    font-weight: 300;
    font-size: 17px;
    line-height: 28px;
    color: #3D3D3D;
    margin-bottom: 16px;
}

.story-right {
    display: grid;
    gap: 18px;
}

.story-mini-card {
    background: #F8FBFF;
    border: 1px solid rgba(46, 177, 247, 0.22);
    border-radius: 18px;
    padding: 22px;
}

.story-mini-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(46, 177, 247, 0.18);
    color: #162447;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
}

.story-mini-card h4 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 6px;
}

.story-mini-card p {
    font-weight: 300;
    font-size: 15px;
    line-height: 24px;
    color: #5C5C5C;
}

/* FACILITY */
.facility-section {
    padding: 80px 40px 100px;
    background: #FFFFFF;
}

.facility-grid {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.6fr;
    gap: 20px;
    align-items: stretch;
}

.facility-item {
    overflow: hidden;
    border-radius: 20px;
    background: #EAF6FF;
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-item.large {
    min-height: 392px;
}

.facility-item.medium {
    min-height: 392px;
}

.facility-item.small-vertical {
    min-height: 392px;
}

.facility-item.large-tall {
    grid-column: 2 / 4;
    min-height: 508px;
}

/* CONTACT */
.contact-section {
    background: #162447;
    padding: 90px 40px 110px;
}

.contact-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    color: #FFFFFF;
}

.contact-info h2 {
    font-weight: 600;
    font-size: 35px;
    line-height: 52px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.contact-lead {
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    max-width: 659px;
    margin-bottom: 28px;
}

.contact-list {
    display: grid;
    gap: 22px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 43px;
    height: 43px;
    border-radius: 7px;
    background: #FFFFFF;
    color: #2EB1F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.contact-item h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.contact-item p {
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
}

.social-follow {
    margin-top: 30px;
}

.social-follow p {
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.social-row {
    display: flex;
    gap: 14px;
}

.social-row a {
    color: #FFFFFF;
    font-size: 30px;
}

.contact-form-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 34px 32px;
}

.contact-form-card h3 {
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form label {
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #272727;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 2px solid rgba(204, 204, 204, 0.97);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #272727;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select {
    color: #B8B8B8;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.char-count {
    text-align: right;
    font-size: 10px;
    line-height: 15px;
    color: #8C8C8C;
    margin-top: -4px;
}

.send-btn {
    margin-top: 10px;
    width: 100%;
    max-width: 304px;
    align-self: center;
    height: 43px;
    border: none;
    border-radius: 7px;
    background: #2EB1F7;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: filter 0.15s, opacity 0.15s;
}

.send-btn:hover:not(:disabled) { filter: brightness(0.9); }
.send-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Default: show text, hide spinner */
.send-btn .btn-loading { display: none; }
.send-btn .btn-text    { display: inline-flex; align-items: center; gap: 8px; }

/* Loading state: hide text, show spinner */
.send-btn.loading .btn-text    { display: none; }
.send-btn.loading .btn-loading { display: inline-flex; align-items: center; gap: 8px; }

/* VISIT */
.visit-section {
    background: #F6F6F6;
    padding: 80px 40px 100px;
}

.visit-layout {
    max-width: 1276px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 28px;
    align-items: stretch;
}

.visit-cards {
    display: grid;
    gap: 20px;
}

.visit-card {
    background: #FFFFFF;
    border: 1px solid #8D8D8D;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    border-radius: 15px;
    padding: 28px 34px;
}

.visit-icon {
    width: 43px;
    height: 43px;
    border-radius: 7px;
    background: rgba(46, 177, 247, 0.2);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.visit-card h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 10px;
}

.visit-card p {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #5C5C5C;
}

.map-card {
    min-height: 541px;
    border: 1px solid #8D8D8D;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 541px;
    display: block;
}

/* FOOTER */
.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;
}

/* SUCCESS POPUP */
.contact-form-card {
    position: relative; /* anchor for the popup overlay */
}

.msg-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.msg-popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.msg-popup {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(22, 36, 71, 0.14);
    padding: 36px 40px;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    max-width: 300px;
    width: 90%;
}

.msg-popup-overlay.show .msg-popup {
    transform: translateY(0);
}

.msg-popup-icon {
    font-size: 48px;
    color: #2EB1F7;
    margin-bottom: 14px;
    line-height: 1;
}

.msg-popup-title {
    font-weight: 600;
    font-size: 18px;
    color: #162447;
    margin-bottom: 6px;
}

.msg-popup-sub {
    font-weight: 300;
    font-size: 14px;
    color: #5C5C5C;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .about-hero-container,
    .story-design-card,
    .contact-container,
    .visit-layout {
        grid-template-columns: 1fr;
    }

    .about-hero-image img {
        margin: 0 auto;
    }

    .facility-grid {
        grid-template-columns: 1fr 1fr;
    }

    .facility-item.large-tall {
        grid-column: auto;
    }
}

@media (max-width: 992px) {
    .about-hero {
        padding: 150px 24px 70px;
    }

    .about-hero-text h1 {
        font-size: 40px;
    }

    .about-hero-text p {
        font-size: 18px;
        line-height: 1.6;
    }

    .section-header h2,
    .contact-info h2 {
        font-size: 30px;
        line-height: 1.35;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero,
    .our-story-section,
    .facility-section,
    .contact-section,
    .visit-section,
    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .about-hero {
        padding-top: 130px;
    }

    .about-hero-text h1 {
        font-size: 32px;
        line-height: 1.25;
    }

    .about-hero-text p,
    .section-header p,
    .contact-lead,
    .contact-item p {
        font-size: 16px;
        line-height: 1.6;
    }

    .facility-grid {
        grid-template-columns: 1fr;
    }

    .facility-item.large,
    .facility-item.medium,
    .facility-item.small-vertical,
    .facility-item.large-tall {
        min-height: 240px;
    }

    .story-left,
    .contact-form-card,
    .visit-card {
        padding: 22px 18px;
    }

    .map-card,
    .map-card iframe {
        min-height: 360px;
    }

    .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;
    }
}
/* 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;
}