/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: #1e1e1e;
    background-color: #f3f0ea;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e1e1e;
}

h1 {
    font-size: 2.5rem;
    color: #3d348b;
}

h2 {
    font-size: 2rem;
    color: #3d348b;
}

h3 {
    font-size: 1.5rem;
    color: #3d348b;
}

p {
    margin-bottom: 1rem;
    color: #4f4f4f;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #3d348b;
    text-decoration: none;
    z-index: 1002;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: #1e1e1e;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.desktop-nav a:hover {
    color: #3d348b;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #3d348b;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}


.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100vh;
}

.mobile-nav a {
    text-decoration: none;
    text-align: center;
    color: #1e1e1e;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav a:hover {
    color: #3d348b;
    background: #f8f9fa;
    padding-left: 1rem;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* Show mobile menu when checkbox is checked */
.mobile-menu-toggle:checked ~ .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Animate hamburger icon when menu is open */
.mobile-menu-toggle:checked ~ .mobile-menu-label .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle:checked ~ .mobile-menu-label .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle:checked ~ .mobile-menu-label .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Close mobile menu when clicking on links */
.mobile-nav a:target {
    outline: none;
}

/* Mobile menu overlay effect */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   min-height: 100vh;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:checked ~ .mobile-menu::before {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when mobile menu is open */
.mobile-menu-toggle:checked ~ * {
    overflow: hidden;
}

/* Smooth transitions for mobile menu */
.mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav a {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
.mobile-menu-label:focus {
    outline: 2px solid #3d348b;
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-nav a:focus {
    outline: 2px solid #3d348b;
    outline-offset: -2px;
    background: #f8f9fa;
}

/* Ensure proper stacking and positioning */
.header-container {
    position: relative;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    border-radius: 0 0 10px 10px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(61, 52, 139, 0.7), rgba(61, 52, 139, 0.7)), url('./img/RwPCD.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: #ffbd00;
    color: #1e1e1e;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #ee6c4d;
    color: white;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background: #ffffff;
}

.section:nth-child(odd) {
    background: #f3f0ea;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.card h3 {
    color: #3d348b;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    display: none;
}

.faq-question:checked + .faq-label {
    background: #3d348b;
    color: white;
}

.faq-question:checked + .faq-label + .faq-answer {
    max-height: 200px;
    padding: 1rem;
}

.faq-label {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e1e1e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3d348b;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.submit-btn {
    background: #3d348b;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #2a1f5c;
}

/* Footer */
.footer {
    background: #1e1e1e;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffbd00;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #ffbd00;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1e1e;
    color: white;
    padding: 1rem 2rem;
    z-index: 1001;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}
.cookie-text p {
    color: white
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.accept-btn {
    background: #ffbd00;
    color: #1e1e1e;
}

.decline-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
}

/* Thank You Page */
.thank-you {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f0ea;
}

.thank-you-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 8rem auto 5rem;
}

/* Policy Pages */
.policy-page {
    margin-top: 5rem;
    min-height: 100vh;
    background: #f3f0ea;
    padding: 2rem 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop nav, show mobile toggle */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-label {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .thank-you-content {
        padding: 2rem;
    }
    
    .policy-content {
        padding: 2rem;
    }
    
    /* Mobile menu improvements */
    .mobile-menu {
        padding: 1.5rem;
    }
    
    .mobile-nav a {
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    /* Mobile menu for very small screens */
    .mobile-menu {
        padding: 1rem;
        left: -1rem;
        right: -1rem;
    }
    
    .mobile-nav a {
        padding: 0.7rem 0;
        font-size: 1rem;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .mobile-menu-label {
        padding: 0.3rem;
    }
}
