/* Basic Reset and Variables */
:root {
    --primary-color: #e53935; /* Matrimony-like red */
    --secondary-color: #3f51b5; /* Blue for contrast */
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; margin-bottom: 1em; }

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.primary-btn:hover {
    background-color: #c62828;
}

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

.secondary-btn:hover {
    background-color: #303f9f;
}

.full-width-btn {
    width: 100%;
    margin-top: 10px;
}

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 12px;
    font-size: 1.1em;
    border: 1px solid #ccc;
}

.social-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--primary-color);
}

.user-navbar #welcome-message {
    margin-right: 15px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Landing Page Sections */
main {
    padding-top: 60px; /* Offset for fixed header */
}

.content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.grey-bg {
    background-color: var(--light-bg);
}

.hero-section {
    text-align: center;
    padding: 100px 5%;
    background: url('https://picsum.photos/1200/600?blur=5') no-repeat center center/cover; /* Placeholder background */
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    color: var(--white);
    font-size: 3em;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-section .primary-btn {
    background-color: var(--secondary-color);
}
.hero-section .primary-btn:hover {
    background-color: #303f9f;
}

/* Feature Grid (Why us) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-grid div {
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-grid h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

/* Plan Grid (Subscriptions) */
.plan-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.plan-card {
    background-color: var(--light-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.featured-plan {
    border-color: var(--primary-color);
    background-color: #fff8f8;
    transform: scale(1.05);
}

.plan-card h3 {
    color: var(--secondary-color);
}

.plan-card .price {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0 20px;
}

.plan-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.plan-card li {
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}

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

/* Locate Us Map */
.map-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* Footer */
.site-footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 30px 5%;
    text-align: center;
    font-size: 0.9em;
}

.footer-links a, .social-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.social-links p {
    margin-right: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: invert(1); /* Makes the icons white */
}

/* --- Modal/Form Styling (Shared between index and user) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Signup Form */
#signup-form h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.name-group {
    display: flex;
    gap: 10px;
}

.name-group input {
    flex: 1;
}

/* --- User Home Page Styling --- */

.user-dashboard {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 30px;
}

.sidebar {
    width: 250px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 80px; /* Below the fixed header */
}

.sidebar h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group input, .filter-group select {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.profile-list {
    flex-grow: 1;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.profile-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.profile-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background-color: #ddd; /* Placeholder color */
}

.profile-info {
    padding: 15px;
}

.profile-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.profile-info p {
    margin: 5px 0;
    font-size: 0.95em;
}

.profile-info strong {
    color: var(--secondary-color);
}

/* Modal for Profile Details */
.profile-details {
    max-width: 700px;
}

.profile-details h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.detail-header img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    border: 3px solid var(--primary-color);
}

.detail-content p {
    margin: 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px dotted #ccc;
}

.detail-content strong {
    display: inline-block;
    width: 150px;
    color: var(--text-color);
    font-weight: 500;
}

.detail-content span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .navbar nav {
        display: none; /* Hide main nav on smaller screens, can use a hamburger menu instead */
    }
    .navbar {
        justify-content: space-around;
    }
    .user-dashboard {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: static;
    }
    .content-section, .user-dashboard {
        padding: 40px 5%;
    }
    .plan-grid {
        flex-direction: column;
        align-items: center;
    }
    .plan-card {
        width: 90%;
    }
}