/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4; /* Softer background color */
    color: #333333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 700px; /* Slightly wider for better readability */
    margin: 40px auto;
    padding: 30px 40px; /* Increased padding for a more spacious feel */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Enhanced shadow for a cleaner look */
}

/* Headings */
h1, h2 {
    text-align: center;  /* Center the h1 element */
    color: #4A4A4A; /* Neutral dark gray for headings */
    margin-bottom: 20px; /* Increased margin for better spacing */
}

h2 {
    font-size: 26px; /* Slightly larger font size for better emphasis */
    margin-top: 30px;
}

h3 {
    color: #666666; /* Light gray for subheadings */
    margin-top: 20px;
}

/* Instructions and Reminder Sections */
.quiz-instructions, .reminder, .faq {
    background-color: #e9ecef; /* Light gray background */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Spacing inside the cards */
    margin-bottom: 20px; /* Space between sections */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.reminder h3 {
    color: #dc3545; /* Red for emphasis on privacy */
    font-weight: bold; /* Make the heading bold */
}

.reminder p {
    font-weight: bold; /* Highlight privacy message */
}

/* Paragraphs */
p {
    font-size: 18px; /* Increased font size for better readability */
    margin-bottom: 20px; /* Increased margin for better spacing */
    color: #4A4A4A;
}

/* Lists */
ul {
    margin-left: 25px; /* Increased left margin for lists */
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 12px; /* Increased margin between list items */
    color: #333333;
}

/* Navigation */
nav {
    background-color: #34495e; /* Darker, neutral color for nav */
    padding: 20px; /* Increased padding for a more spacious look */
    text-align: center;
}

nav a {
    color: #ecf0f1; /* Light color for better contrast */
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px; /* Increased padding for better touch targets */
    border-radius: 5px;
    transition: background-color 0.3s ease; /* Smooth transition */
}

nav a:hover {
    background-color: #455a64; /* Subtle hover effect */
}

/* Buttons */
.btn {
    background-color: #5a9bd4; /* Softer blue for buttons */
    color: white;
    padding: 12px 25px; /* Increased padding for a more spacious feel */
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 16px;
    margin-top: 15px; /* Increased margin for better spacing */
    display: inline-block;
}

.btn:hover {
    background-color: #4a8dc4; /* Darker blue for hover */
}

.reset-btn {
    background-color: #bdc3c7; /* Neutral gray for reset */
}

.reset-btn:hover {
    background-color: #c3c3c3; /* Lighter gray on hover */
}

/* Image Placeholder */
.image-placeholder img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: #34495e;
    color: white !important; /* Force white text */
    padding: 20px 0; /* Increased padding for a more spacious footer */
    text-align: center;
    width: 100%;
    margin-top: 40px;
}

footer p {
    color: white !important; /* Ensure footer text is white */
}

/* Feedback Section */
.feedback-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px; /* Increased padding for more space */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.feedback-container h3 {
    color: #4A4A4A; /* Changed to a neutral dark gray */
}

.feedback-container textarea {
    width: 100%;
    padding: 15px; /* Consistent padding */
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 16px;
}

/* Progress bar container styles */
.progress-container {
    width: 100%; /* Makes the progress container take up the full width of its parent */
    background-color: #f5f5f5; /* A softer background color for the container */
    border-radius: 20px; /* Rounded corners for a smoother look */
    overflow: hidden; /* Ensures any overflow content is clipped */
    margin-bottom: 10px; /* Adds space below the progress bar */
}

/* Progress bar styles */
.progress-bar {
    width: 0%; /* Initially set to 0% width, it will grow as progress is made */
    height: 20px; /* Height of the progress bar */
    background-color: #f78da7; /* Pinkish background to fit the love theme */
    border-radius: 20px; /* Rounded corners for the progress bar itself */
    transition: width 0.4s ease; /* Smooth transition effect as the width changes */
    position: relative; /* Allows the heart icon to be positioned absolutely inside */
}

/* Add a pulsing heart at the end of the progress bar */
.progress-bar::after {
    content: "❤️"; /* Adds a heart symbol at the end of the bar */
    position: absolute; /* Positioned relative to the progress bar */
    top: -4px; /* Slightly above the progress bar to sit in a visible position */
    right: 1px; /* Positioned near the right edge of the progress bar */
    font-size: 15px; /* Size of the heart symbol */
    animation: pulse 1s infinite ease-in-out; /* Makes the heart pulse continuously */
}

/* Keyframe animation for the pulsing heart effect */
@keyframes pulse {
    0% { transform: scale(1); } /* Normal size at the start */
    50% { transform: scale(1.2); } /* Grows slightly in the middle of the animation */
    100% { transform: scale(1); } /* Returns to normal size at the end */
}



/* Responsive Styles */
@media (max-width: 600px) {
    .container {
        padding: 20px; /* Adjusted for smaller screens */
    }

    nav {
        padding: 10px;
    }

    nav a {
        display: block;
        margin-bottom: 10px;
    }

    .btn {
        width: 100%; /* Full-width buttons on small screens */
    }
}

/* Contact Form Styles */
.contact-form {
    margin-top: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #4A4A4A; /* Neutral dark gray for labels */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px; /* Consistent padding */
    border: 1px solid #bdc3c7; /* Soft gray border */
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #5a9bd4; /* Highlight border when focused */
    outline: none;
}

.contact-form button {
    background-color: #5a9bd4; /* Softer blue for buttons */
    color: white;
    padding: 12px 25px; /* Consistent padding */
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #4a8dc4; /* Darker blue on hover */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

/* Responsive Form Adjustments */
@media (max-width: 600px) {
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 10px; /* Slightly reduced padding on smaller screens */
    }

    .contact-form button {
        width: 100%; /* Full-width button on small screens */
    }
}

/* Quiz Title and Subtitle Styles */
.quiz-title {
    text-align: center; /* Center the title */
    font-size: 36px; /* Largest font size for emphasis */
    color: #4A4A4A; /* Neutral dark gray for the title */
    margin-bottom: 10px; /* Space below the title */
}

.quiz-subtitle {
    text-align: center; /* Center the subtitle */
    font-size: 20px; /* Slightly smaller than the title */
    color: #666666; /* Light gray for the subtitle */
    margin-bottom: 30px; /* Space below the subtitle */
}

.quiz-button {
    display: inline-block; /* Make it an inline block element */
    padding: 10px 20px; /* Add some padding */
    font-size: 16px; /* Increase font size */
    color: white; /* Button text color */
    background-color: #007BFF; /* Button background color */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    text-align: center; /* Center text */
}

.quiz-button:hover {
    background-color: #0056b3; /* Darker background on hover */
}


/* Additional CSS for Quiz for Him and Her */
/* Styling for quiz options */
.quiz-option {
    display: block;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.quiz-option input[type="radio"] {
    display: none; /* Hide the radio button itself */
}

.quiz-option span {
    margin-left: 10px;
}

.quiz-option:hover, .quiz-option input[type="radio"]:checked + span {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 5px;
}

.him-quiz-image {
    max-width: 100%;
    width: 100%; /* Adjust as needed */
    max-width: 400px;
    display: block;
    margin: 0 auto 20px auto; /* Centers the image and adds bottom space */
    border-radius: 10px;
    object-fit: cover;
}

/* General button style for hidden buttons */
#resetBtn, #downloadBtn, #whatsappBtn {
    display: none;
}

/* Visible class to display buttons after quiz completion */
.visible {
    display: inline-block !important;
}

/* Modal styling */
/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for focus */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    background: #fff; /* Pure white for contrast */
    border-radius: 14px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Soft shadow */
    text-align: center;
    font-family: 'Arial', sans-serif;
    color: #34495e; /* Dark blue-gray for text */
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animation for modal appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Title */
.modal-content h2 {
    color: #333;
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Modal Description */
.modal-content p {
    font-size: 1em;
    color: #666;
    margin-bottom: 30px;
}

/* Labels and Select Fields */
.modal-content label {
    display: block;
    color: #444;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 8px;
}

.modal-content select {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    color: #333;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.modal-content select:focus {
    border-color: #5a9bd4; /* Accent color for focus */
    outline: none;
}

/* Style for input fields in the modal */
.modal-content input[type="text"] {
    width: 90%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.modal-content input[type="text"]:focus {
    border-color: #5a9bd4; /* Accent color to match focus styling */
    outline: none;
}



/* Styling for the Love Languages Icons Section */
.love-languages-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
}

.love-language {
    max-width: 150px;
    text-align: center;
}

.love-language img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

/* Hover Effect for Icons */
.love-language img:hover {
    transform: scale(1.05);
}

.love-language h4 {
    font-size: 1.1em;
    margin: 8px 0 5px;
    color: #333;
    font-weight: bold;
}

.love-language p {
    font-size: 0.9em;
    color: #555;
    margin: 0;
}

/* Contact Form Container */
.contact-form-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background: #f7f7f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensure padding doesn’t increase width */
}

/* Form Elements */
.contact-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    background-color: #f0f2f5;
    transition: border-color 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus {
    border-color: #5a9bd4;
    outline: none;
}

/* Submit Button Styling */


/* Contact Form Container */
/* Form Elements */
.form-input,
.form-textarea {
    width: 100%;
    padding: 8px; /* Reduced padding for smaller height */
    margin-bottom: 12px; /* Reduced spacing between fields */
    border: 1px solid #ccc;
    border-radius: 6px; /* Slightly smaller border radius */
    font-size: 0.95em; /* Slightly reduced font size */
    color: #333;
    background-color: #f0f2f5;
    transition: border-color 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus {
    border-color: #5a9bd4;
    outline: none;
}

/* Submit Button Styling */
.submit-btn {
    padding: 10px 0; /* Reduced button height */
    font-size: 1em; /* Adjusted font size */
}

/* Style for the close button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: red;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    line-height: 30px;
    cursor: pointer;
    font-weight: bold;
}

/* Style for the Start Quiz button */
.modal-btn {
    background-color: #2137af; /* Green */
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Flexbox styling for modal alignment */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 500px;
    text-align: center;
}


/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background-color: #e0f7fa; /* Pastel blue background */
    color: #660066; /* Deep purple text color */
}

.navbar a {
    color: #660066; /* Deep purple link color */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #993399; /* Lighter purple on hover */
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
}

/* Links Container */
.nav-links {
    display: flex;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #660066; /* Deep purple color for hamburger icon */
}

/* Responsive Menu for Smaller Screens */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #e0f7fa; /* Match the pastel blue background */
        z-index: 2; /* Ensure it stays above other elements */
    }

    .nav-links a {
        padding: 1em;
        text-align: center;
        width: 100%;
        color: #660066; /* Deep purple link color */
    }

    .nav-links a:hover {
        color: #993399; /* Lighter purple on hover for mobile view as well */
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}
