﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* stack header, main, footer */

    /* ✅ Background image */
    background-image: url("../icon/background.jpg");
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;
}

p {
    color: white;
}

footer {
    background: #00acc1;
    color: #fff;
    text-align: center;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}

.footer-marquee {
    white-space: nowrap;
    display: inline-block;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ---- Carousel & Staff ---- */
.doctor-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.staff-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.staff-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.staff-member img:hover { transform: scale(1.1); }
.staff-member p {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

/* ---- Map ---- */
.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}
.map-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Layout ---- */
.main-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 8%;
    gap: 2rem;
}

/* Contact slide */
.contact-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
}
.contact-slide p:first-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00acc1;
    margin-bottom: 10px;
}
.contact-slide p {
    font-size: 1rem;
    color: #333;
    margin: 5px 0;
}

/* ---- Boxes ---- */
.left-box {
    width: 100%;
    height: 300px;
    flex: 1;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
    min-width: 500px;
    position: relative;
    overflow: hidden;
}

.login-container {
    background: #FFF;
    padding: 2.5rem;
    border-radius: 12px;
    width: 350px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.register-pane {
    width: 70%;
    margin: auto;
    padding: 2rem;
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    color: white;
}

/* Progress bar */
.progressbar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 1.5rem 0 2rem;
}

.progressbar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 100%;
    background: #444;
    transform: translateY(-50%);
    z-index: -1;
    border-radius: 3px;
}
.progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 0%;
    background: #00acc1;
    transform: translateY(-50%);
    transition: 0.4s ease;
    border-radius: 3px;
}
.progress-step {
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.progress-step.active {
    background: #00acc1;
}
.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: 30px;
    font-size: 0.8rem;
    color: #aaa;
}

/* Form steps */
.form-step {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.form-step.active {
    display: flex;
}

/* Inputs */
.form-step input {
    width: 70%;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    background: #eeeee4;
    color: black;
    margin: auto;
}
.form-step input:focus {
    outline: 2px solid #00acc1;
}

/* ---- Inputs ---- */
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #00acc1;
}
.input-group { margin-bottom: 1rem; }
label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
    color: #585e5a;
}

input {
    display: block;     /* ← forces block-level */
    width: 90%;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    background: #eeeee4;
    color: black;
    margin: 0 auto;     /* ← centers horizontally */
}


input:focus { outline: 2px solid #00acc1; }

.btn {
    display: block;
    width: 150px;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    background: #00acc1;
    color: #121212;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin: 1rem auto 0;
    text-align: center;
}
.btn:hover { background: #00cde0; }
.error {
    color: #ff6b6b;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* ---- Carousel ---- */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}
.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    z-index: 0;
}
.carousel-item.active {
    opacity: 1;
    z-index: 1;
}
.carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-controls button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #f0c21d;
    cursor: pointer;
    transition: background 0.3s ease;
}
.carousel-controls button.active { background: #db5918; }
.carousel-controls button:hover { background: black; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;  /* stack */
        align-items: center;
        padding: 1rem;
        gap: 0; /* 🚀 remove spacing when stacked */
        justify-content: flex-start; /* prevent weird extra space */
    }
    
    .login-container {
        order: 0;
        width: 80%;
        margin-bottom: 20px;
    }
    
    .left-box {
        order: 1;
        width: 100%;
        min-width: unset;
        height: auto;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .carousel { height: 200px; }
}
