/* Main styles for Horoscope Consultation Website */

/* Base styles */
:root {
    --dark-blue: #1D1F2F;
    --lavender: #B388EB;
    --coral: #FF6B6B;
    --mint: #6FFFE9;
    --cream: #FAF3DD;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 40px; 
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark-blue);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

section[id] { 
    scroll-margin-top: 40px; 
}

div { 
    word-break: break-word; 
    overflow-wrap: break-word; 
}

a {
    color: var(--lavender);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* Button styles */
.btn {
    display: block;
    background-color: var(--mint);
    color: var(--dark-blue);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: auto;
    max-width: max-content;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header styles */
header {
    background-color: rgba(29, 31, 47, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mint);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--cream);
    font-weight: 500;
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--cream);
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-checkbox {
    display: none;
}

/* Hero section */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(rgba(29, 31, 47, 0.7), rgba(29, 31, 47, 0.7)), url('../img/GMA6a.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--cream);
}

/* About Us section */
.about {
    background-color: rgba(29, 31, 47, 0.9);
}

/* Benefits section */
.benefits {
    background-color: var(--dark-blue);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: rgba(179, 136, 235, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    color: var(--mint);
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Services section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: rgba(179, 136, 235, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 1rem;
    color: var(--mint);
}

.service-card .btn {
    margin: 0 auto 1.5rem auto;
}

/* Testimonials section */
.testimonials {
    background-color: rgba(29, 31, 47, 0.8);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
}

.testimonial-text {
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    color: var(--mint);
    font-weight: 600;
}

/* Consultation Steps section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step-card {
    background-color: rgba(179, 136, 235, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.step-number {
    background-color: var(--mint);
    color: var(--dark-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

/* FAQ section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question-label {
    display: block;
    padding: 1.5rem;
    background-color: rgba(179, 136, 235, 0.1);
    color: var(--mint);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question-label:hover {
    background-color: rgba(179, 136, 235, 0.2);
}

.faq-question-label::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-checkbox {
    display: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 1.5rem;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
}

.faq-checkbox:checked ~ .faq-question-label::after {
    content: '−';
}

/* Form section */
.form-section {
    background-color: rgba(29, 31, 47, 0.9);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--mint);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(179, 136, 235, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

select.form-input {
    cursor: pointer;
}

option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 6px;
}

.checkbox-group label {
    font-size: 0.9rem;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Thank you page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-box {
    background-color: rgba(179, 136, 235, 0.1);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 5rem auto;
}

.thanks-box h1 {
    color: var(--mint);
    margin-bottom: 1.5rem;
}

.thanks-box p {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: rgba(29, 31, 47, 0.95);
    padding: 3rem 0;
    border-top: 1px solid rgba(179, 136, 235, 0.3);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    color: var(--mint);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(179, 136, 235, 0.2);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(29, 31, 47, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    display: none;
    text-align: center;
}

.cookie-popup p {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Policy pages */
.policy-container {
    max-width: 800px;
    margin: 5rem auto;
    background-color: rgba(179, 136, 235, 0.1);
    padding: 3rem;
    border-radius: 10px;
}

.policy-container h1 {
    color: var(--mint);
    margin-bottom: 2rem;
    text-align: center;
}

.policy-container h2 {
    color: var(--lavender);
    margin: 2rem 0 1rem 0;
}

.policy-container p, .policy-container ul, .policy-container ol {
    margin-bottom: 1rem;
}

.policy-container ul, .policy-container ol {
    padding-left: 2rem;
}

/* Blog & Advice pages */
.content-page {
    max-width: 800px;
    margin: 5rem auto;
}

.content-page h1 {
    color: var(--mint);
    margin-bottom: 2rem;
    text-align: center;
}

.blog-post, .advice-card {
    background-color: rgba(179, 136, 235, 0.1);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1010;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(29, 31, 47, 0.98);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        max-height: 0;
        overflow: hidden;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 100vh;
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    nav ul li {
        margin: 1rem 0;
        text-align: center;
        width: 100%;
    }
    
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .policy-container {
        padding: 2rem;
        margin: 3rem 1rem;
    }
    
    .thanks-section {
        height: auto;
    }
    
    .thanks-box {
        margin: 3rem 1rem;
        padding: 2rem;
    }
}
