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

:root {
    /* Brand Color Palette */
    --primary-color: #E91E63;        /* SP City Hospital Pink */
    --primary-dark: #C2185B;         /* Darker Pink */
    --secondary-color: #FF9800;      /* Ballia Development Alliance Orange */
    --accent-color: #F57C00;         /* Darker Orange */
    --tertiary-color: #FFB74D;       /* Light Orange */
    --background-light: #FFF8F0;     /* Very Light Orange Background */
    --background-white: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-light: #FFE0B2;         /* Light Orange Border */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* Typography */
    --font-english: 'Inter', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --card-padding: 2rem;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-english);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

/* Hindi text styling */
.hindi {
    font-family: var(--font-hindi);
    font-weight: 500;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--background-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-section {
    flex: 1;
}

.organization-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.organization-name i {
    color: var(--accent-color);
}

.partnership {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.contact-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background: var(--accent-color);
}

/* Hero Banner with Images */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.hero-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.8), rgba(255, 152, 0, 0.8));
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-title .hindi,
.banner-subtitle .hindi {
    display: block;
    font-family: 'Noto Sans Devanagari', sans-serif;
    margin-top: 0.5rem;
    font-size: 0.9em;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--section-padding);
    text-align: center;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-title .hindi {
    display: block;
    font-size: 2rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.social-proof {
    margin-bottom: 2rem;
}

.counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.counter i {
    font-size: 2rem;
    color: var(--warning-color);
}

.count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warning-color);
}

.counter .text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Booking Status */
.booking-status {
    margin-top: 2rem;
}

.status-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.status-card i {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.status-text p {
    margin-bottom: 0.5rem;
}

.slots {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.countdown-timer {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
}

.countdown-timer p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

/* Slot Availability */
.slot-availability {
    margin-top: 1.5rem;
    text-align: center;
}

.slots-info {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.slots-info i {
    font-size: 1.5rem;
}

.slot-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.slot-text p {
    margin: 0;
    line-height: 1.3;
}

.slot-text .hindi {
    font-size: 0.875rem;
    opacity: 0.9;
}

#availableSlots,
#availableSlotsHindi {
    font-weight: 700;
    color: var(--warning-color);
}

/* Benefits Section */
.benefits {
    padding: var(--section-padding);
    background: var(--background-white);
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-title .hindi {
    display: block;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

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

.benefit-card {
    background: var(--background-white);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: white;
}

.benefit-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-content .hindi {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.free-highlight {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.25rem;
    font-weight: 600;
}

.free-highlight .hindi {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.125rem;
}

/* Registration Section */
.registration {
    padding: var(--section-padding);
    background: var(--background-light);
}

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

.registration-form {
    background: var(--background-white);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

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

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.field-help {
    display: block;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.field-help .hindi {
    display: block;
    margin-top: 0.125rem;
}

input[type="text"],
input[type="number"],
input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    background: var(--background-light);
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--section-padding);
}

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

.testimonial-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    font-style: italic;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.author-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Location Section */
.location {
    padding: var(--section-padding);
    background: var(--background-white);
}

.location-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.location-details {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.location-item a:hover {
    text-decoration: underline;
}

.location-item .address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.location-item div p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--background-white);
    max-width: 500px;
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header .hindi {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.visit-instructions {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.visit-instructions h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.visit-instructions ul {
    list-style: none;
}

.visit-instructions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.visit-instructions li:last-child {
    border-bottom: none;
}

.modal-close {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer .hindi {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Error Styles */
.error {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.error-message {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --card-padding: 1.5rem;
    }
    
    .header-content {
        text-align: center;
    }
    
    .organization-name {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .hindi {
        font-size: 1.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .counter {
        flex-direction: column;
        text-align: center;
    }
    
    .counter .text {
        text-align: center;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .radio-group,
    .checkbox-group {
        gap: 0.5rem;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 0.75rem;
        background: var(--background-light);
        border-radius: var(--border-radius);
    }
    
    .modal-content {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .location-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-title .hindi {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title .hindi {
        font-size: 1.25rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-form {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .submit-btn {
        display: none;
    }
    
    .modal-content {
        box-shadow: none;
        border: 2px solid var(--border-light);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --background-light: #ffffff;
        --background-white: #ffffff;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-light: #000000;
    }
    
    .benefit-card,
    .registration-form,
    .location-card {
        border: 2px solid var(--border-light);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Slots Full Message */
.slots-full-message {
    margin-top: 2rem;
    padding: 2rem;
}

.slots-full-card {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.slots-full-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffeb3b;
    animation: pulse 2s infinite;
}

.slots-full-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.slots-full-card p {
    margin: 1rem 0;
    line-height: 1.6;
    opacity: 0.95;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.contact-info a {
    color: #ffeb3b;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Brand Logo Styling */
.brand-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.bda-logo, .hospital-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-img {
    height: 90px;
    width: auto;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.bda-logo .logo-img {
    height: 100px;
}

.hospital-logo .logo-img {
    height: 85px;
}

.partnership-text {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
}

.partnership-text .hindi {
    display: block;
    font-size: 0.85rem;
    margin-top: 2px;
}

.org-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.org-name .hindi {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Mobile Responsiveness for Logos */
@media (max-width: 768px) {
    .brand-logos {
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-img {
        height: 70px;
    }
    
    .bda-logo .logo-img {
        height: 80px;
    }
    
    .hospital-logo .logo-img {
        height: 65px;
    }
    
    .partnership-text {
        font-size: 0.8rem;
        margin: 1rem 0;
    }
    
    .org-name {
        font-size: 0.8rem;
    }
    
    .org-name .hindi {
        font-size: 0.7rem;
    }
    
    /* Hero Banner Mobile */
    .hero-banner {
        height: 350px;
    }
    
    .hero-images {
        flex-direction: column;
    }
    
    .hero-image {
        flex: 1;
    }
    
    .hero-banner-content {
        padding: 1rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
}
