/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.btn-appointment {
    background: #2563eb;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-appointment:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-appointment.active {
    background: #1d4ed8;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    padding: 1rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.qualifications {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.qualification {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-image img{
    display: flex;
    justify-content: center;
    width: 300px;
    height: 300px;
}

.doctor-placeholder{
    width: 150px;
    height: 200px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 30px;
    
    display: flex;
    align-items: center;
    justify-content: center;
   
    color: white;
    font-size: 6rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.doctor-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Cover the frame completely with cropping */
    display: block;
    border-radius: 20px; /* To match the frame’s corners if needed */
}


/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.qualification-card, .experience-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #2563eb;
}

.qualification-card h3, .experience-card h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.qualification-card ul {
    list-style: none;
}

.qualification-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.qualification-card li:last-child {
    border-bottom: none;
}

.experience-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-header h4 {
    color: #1e293b;
    font-size: 1.1rem;
}

.experience-duration {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

.services h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* Location Section */
.location {
    padding: 80px 0;
    background: white;
}

.location h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.address-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.address-card h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.address-card p {
    margin-bottom: 1rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-card i {
    color: #2563eb;
    width: 20px;
}

.map-container {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.map-placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 20px 0;
    margin-top: 80px;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #f1f5f9;
}

.phone-number, .call-timing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.phone-number i, .call-timing i {
    color: #60a5fa;
    width: 16px;
}

.phone-number span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.call-timing span {
    font-size: 0.9rem;
}

.contact-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    width: 20px;
}

.contact-divider span {
    padding: 0 15px;
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
}

.online-booking {
    text-align: center;
}

.online-booking h4 {
    margin: 0 0 5px 0;
    color: #f1f5f9;
    font-size: 1.1rem;
}

.online-booking p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.85rem;
}

/* Appointment Section */
.appointment-section {
    padding: 120px 0 80px;
    margin-top: 80px;
    background: #f8fafc;
}

.appointment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.appointment-header h1 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.appointment-header p {
    font-size: 1.25rem;
    color: #64748b;
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.doctor-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.doctor-details h2 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.doctor-title {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.doctor-qualifications {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.doctor-experience {
    color: #64748b;
    font-size: 0.9rem;
}

.appointment-guidelines {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.appointment-guidelines h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.appointment-guidelines ul {
    list-style: none;
}

.appointment-guidelines li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #64748b;
}

.appointment-guidelines i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Form Styles */
.appointment-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.appointment-form {
    padding: 2rem;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.helper-text {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.error-message {
    display: block;
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex !important;
    align-items: start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Success Message */
.success-message {
    padding: 2rem;
    text-align: center;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
}

.success-content i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-content h3 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-content p {
    color: #047857;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Loading Spinner */
.loading-spinner {
    padding: 2rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #64748b;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-banner {
        padding: 15px 0;
    }
    
    .contact-info-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .contact-divider {
        order: 2;
    }
    
    .contact-details {
        order: 1;
    }
    
    .online-booking {
        order: 3;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .phone-number span {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        text-align: center;
        font-size: 2.5rem;
    }
    
    .doctor-placeholder {
        flex-direction: column;
        width: 200px;
        height: 200px;
        font-size: 4rem;
        justify-content: center;
        align-content: center;
        align-items: center;
        display: block;
    }
    
    .doctor-placeholder img{
        max-width: 100%;
        margin-left: auto;    /* Pushes the image to center horizontally */
        margin-right: auto;
        
    }
    
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .doctor-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .appointment-header h1 {
        font-size: 2rem;
    }
    
    .about h2,
    .services h2,
    .location h2 {
        font-size: 2rem;
    }
}