/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mikvah Selection Styles */
.mikvah-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.mikvah-option {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mikvah-option:hover {
    transform: translateY(-5px);
}

.mikvah-option h4 {
    color: #1e5799;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.mikvah-option .address {
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.mikvah-option .description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.btn-select-mikvah {
    background-color: #1e5799;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-select-mikvah:hover {
    background-color: #154477;
    transform: translateY(-2px);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1e5799;
    text-decoration: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/mikveh1.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    /* padding-top removed as it's now handled in base.html */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    /* padding-top removed as it's now handled in base.html */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #1e5799;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #ddd;
}

.feature-img-1 {
    background: url('../images/mikveh1.jpg') no-repeat center center/cover;
}

.feature-img-2 {
    background: url('../images/mikveh2.jpg') no-repeat center center/cover;
}

.feature-img-3 {
    background: url('../images/mikveh3.jpg') no-repeat center center/cover;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #1e5799;
}

/* Payment Button */
.payment-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f5f5f5;
}

.btn-payment {
    display: inline-block;
    background-color: #1e5799;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(30, 87, 153, 0.3);
}

.btn-payment:hover {
    background-color: #154477;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 87, 153, 0.4);
}

.btn-payment-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-payment-disabled:hover {
    background-color: #1e5799;
    transform: none;
    box-shadow: 0 4px 10px rgba(30, 87, 153, 0.3);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        /* padding-top removed as it's now handled in base.html */
    }

    .hero-content {
        /* padding-top removed as it's now handled in base.html */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0; /* Slightly reduced header padding for small screens */
    }

    .hero {
        /* padding-top removed as it's now handled in base.html */
    }

    .hero-content {
        /* padding-top removed as it's now handled in base.html */
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-top: 10px; /* Additional margin to ensure visibility */
    }

    .container {
        padding: 0 15px;
    }

    .btn-payment {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Pricing Options Styles */
.pricing-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pricing-option {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 300px;
    text-align: center;
}

.pricing-option:hover {
    transform: translateY(-10px);
}

.pricing-option h3 {
    color: #1e5799;
    margin-bottom: 15px;
}

.pricing-option .price {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.pricing-option .description {
    margin-bottom: 20px;
    color: #666;
}

/* Hero pricing specific styles */
.hero-pricing {
    margin-top: 30px;
}

.hero-pricing .pricing-option {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-pricing .pricing-option .description {
    color: #333;
}

/* Ensure dynamic pricing options display side by side */
#dynamic-pricing-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Status closed indicator */
.status-closed {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Schedule information styles */
.schedule-info {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.schedule-info h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    font-size: 0.9em;
    font-weight: bold;
}

.schedule-days {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-day {
    display: flex;
    font-size: 0.85em;
    color: #fff;
}

.day-name {
    min-width: 80px;
    font-weight: bold;
}

.day-times {
    flex: 1;
}

/* Mikvah container styles */
.mikvah-container {
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mikvah-header {
    margin-bottom: 20px;
    color: #1e5799;
    text-align: center;
}

.mikvah-prices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Announcement styles */
.announcement {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.announcement p {
    margin: 0;
    font-weight: bold;
}

/* Subscription management styles */
.subscription-management {
    margin: 30px 0;
    padding: 20px 0;
    background-color: #f8f9fa;
}

.subscription-management p {
    color: #495057;
    margin-bottom: 0;
}

/* No mikvahs available message */
.no-mikvahs-message {
    color: #fff;
    text-align: center;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    color: #1e5799;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content p {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary {
    background-color: #1e5799;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #154477;
}
