/* Patient Portal Specific Styles */

/* Header Styles */
.header {
    text-align: center;
    color: white;

}

.topbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
.card{
    background-color: #f5ede0;
}
.card-header {
    background-color: #c9ddf0; /* Light blue */
    font-weight: 600;
}
.accordion-collapse{
    background-color: #f5ede0
}

.form-control, .form-select {
    background-color: #f1f3f6;
    color: #333;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid #ccc;
}

.login-btn {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: clamp(0.35rem, 1.2vw, 0.6rem) clamp(0.5rem, 1.6vw, 0.9rem);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e5799;
    border: 1px solid #cfe0f5;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    background: #f3f8ff;
    box-shadow: 0 4px 12px rgba(30, 87, 153, 0.15);
}

.clinic-logo {
    width: clamp(56px, 9vw, 92px);
    height: clamp(56px, 9vw, 92px);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 auto clamp(0.75rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    animation: pulse 3s ease-in-out infinite;
    overflow: hidden; /* ensure image fits inside the circle */
}

.clinic-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.header h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    margin-bottom: clamp(0.4rem, 1.2vw, 0.75rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h2 {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    margin: 0.1rem 0 0.4rem;
    opacity: 0.95;
}

.header p {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    opacity: 0.95;
    line-height: 1.55;
}

/* Patient Section Styles */
.patient-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: clamp(1rem, 2.5vw, 2rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.25rem, 2.8vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: clamp(0.5rem, 1.6vw, 0.9rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Buttons */
.btn-cta {
    padding: clamp(0.75rem, 1.8vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
    border: none;
    border-radius: 14px;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-primary-cta {
    background: linear-gradient(135deg, #4fc3f7 0%, #03a9f4 100%); /* light sky blue */
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-primary-cta:hover {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%); /* slightly deeper on hover */
    transform: translateY(-2px);
}


.btn-secondary-cta {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* Appointment Form Section */
.appointment-form-section {
    display: none;
    animation: fadeInUp 0.6s ease forwards;
}

.appointment-form-section.show {
    display: block;
}

/* Feature badges */
.features-row {
    display: flex;
    gap: clamp(0.4rem, 1.5vw, 0.75rem);
    justify-content: center;
    margin-top: clamp(0.5rem, 1.5vw, 1rem);
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.35rem, 1.2vw, 0.5rem) clamp(0.5rem, 1.6vw, 0.75rem);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: #1e5799;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.feature-badge i {
    color: #207cca;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #1e5799;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    color: #1a1a1a;
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.service-card p {
    color: #6b7280;
    font-size: clamp(0.9rem, 1.4vw, 0.98rem);
    line-height: 1.5;
}

/* Admin Link */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.admin-link:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Styles for Patient Portal */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 320px;
    }
    .features-row {
        gap: 0.5rem;
    }
}


.btn-blue {
    background: linear-gradient(to bottom right, #1e5799, #207cca);
    color: #fff;
    font-weight: 600;
}
.btn-blue:hover {
    background: linear-gradient(to top left, #3399ff, #003366);
    transform: translateY(-1px); /* slight upward lift */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* subtle shadow */
    color: white;
}
