/* Global Styles */
:root {
    --primary-color: #2a7f62;
    --primary-dark: #1e5e48;
    --primary-light: #3bb08f;
    --secondary-color: #3a506b;
    --accent-color: #f79256;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --danger-color: #e63946;
    --success-color: #2a9d8f;
    --warning-color: #f4a261;
    --info-color: #457b9d;
    --text-color: #333;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn.secondary:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
}

.btn.danger {
    background-color: var(--danger-color);
    color: white;
}

.btn.danger:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
}

.btn.google {
    background-color: #db4437;
    color: white;
}

.btn.microsoft {
    background-color: #0078d7;
    color: white;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 100px; 
    width: auto; 
    object-fit: contain; 
    display: block;
    background-color: white; 
    padding: 5px; 
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x1080?text=Clinic') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 72px; 
    background-image: url('images/pic.png'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    height: 90vh; 
    display: flex;
    align-items: center;
    color: white; 
    text-align: center;
    position: relative;
}


.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
}
.hero .container {
    position: relative; 
    z-index: 1;
}


.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: white;
}

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

.service-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Locations Section */
.locations {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

.location-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-card h3 {
    padding: 1rem 1rem 0;
}

.location-card p {
    padding: 0 1rem 1.5rem;
    color: var(--text-light);
}

/* Donation Section */
.donate {
    padding: 5rem 0;
    background-color: white;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.donation-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.donation-card:hover, .donation-card.selected {
    border-color: var(--primary-color);
}

.donation-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.donation-card.custom-amount input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Appointment Section */
.appointment {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.appointment-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

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

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.emergency-contact {
    background-color: #fff8f8;
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    margin-top: 2rem;
}

.emergency-contact h4 {
    color: var(--danger-color);
}

.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

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

.footer-section ul li a {
    color: #adb5bd;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: #adb5bd;
}

#newsletterForm input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: none;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #495057;
    font-size: 0.875rem;
    color: #adb5bd;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    animation: modalopen 0.5s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--text-color);
}

/* Login Modal */
#loginForm .form-group {
    margin-bottom: 1.25rem;
}

#loginForm input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

#forgotPassword {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.social-login {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-login p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
}

.register-link p {
    color: var(--text-light);
}

.register-link a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Payment Modal */
.payment-modal {
    max-width: 500px;
}

.donation-amount {
    text-align: center;
    font-size: 1.25rem;
    margin: 1.5rem 0;
}

#displayAmount {
    font-weight: 600;
    color: var(--primary-color);
}

#paymentForm .form-group {
    margin-bottom: 1.25rem;
}

#paymentForm input,
#paymentForm select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.checkbox {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox input {
    width: auto;
    margin-right: 0.75rem;
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.payment-security i {
    color: var(--success-color);
}

/* Patient Dashboard */
.patient-dashboard {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
}

.patient-header {
    padding: 2rem;
    background-color: var(--primary-color);
    color: white;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.patient-avatar i {
    font-size: 3rem;
}

.patient-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.patient-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    padding: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
}

.appointment-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.appointment-card.past {
    opacity: 0.7;
}

.appointment-info h4 {
    margin-bottom: 0.5rem;
}

.appointment-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.appointment-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.appointment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.records-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.records-filter select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.record-info h4 {
    margin-bottom: 0.25rem;
}

.record-info p {
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.record-type {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.record-actions {
    display: flex;
    gap: 0.5rem;
}

.prescription-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.prescription-card.past {
    opacity: 0.7;
}

.prescription-info h4 {
    margin-bottom: 0.5rem;
}

.prescription-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.prescription-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.prescription-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.message-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: var(--light-color);
    cursor: pointer;
}

.message-item.unread {
    background-color: #e3f2fd;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.message-preview {
    color: var(--text-light);
    font-size: 0.875rem;
}

.message-compose select,
.message-compose textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.message-compose textarea {
    min-height: 150px;
}

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

.telemedicine-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.telemedicine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.telemedicine-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.telemedicine-card h4 {
    margin-bottom: 0.75rem;
}

.telemedicine-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.telemedicine-instructions {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.telemedicine-instructions ol {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.telemedicine-instructions li {
    margin-bottom: 0.5rem;
}

.patient-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Success Modal */
.success-modal {
    text-align: center;
    max-width: 400px;
}

.success-icon i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .patient-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .donation-options {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .appointment-actions {
        flex-direction: column;
    }
}