/* Main CSS Styles for domain.com - Horoscope Services */

:root {
    --purple: #5D3FD3;
    --mint: #B9FBC0;
    --black: #0F0F0F;
    --cream: #FFF5E1;
    --pink: #FF5CA2;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    background-color: var(--cream);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--pink);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container > p {
    text-align: center;
    margin-bottom: 2rem;
}

.container > h2, .container > p {
    text-align: center;
}

/* Framed content for policy and info pages */
.framed-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border: 3px solid var(--mint);
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(93, 63, 211, 0.2);
    text-align: left;
    position: relative;
    color: #000000;
}

.framed-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px dashed var(--purple);
    border-radius: 10px;
    pointer-events: none;
    z-index: -1;
}

.framed-content h2, 
.framed-content h3,
.framed-content h4,
.framed-content h5,
.framed-content h6 {
    color: #000000 !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
}

section h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #000000 !important;
}

.framed-content h2:first-child {
    margin-top: 0;
}

.framed-content p, .framed-content li {
    color: #000000;
    font-size: 1.05rem;
    line-height: 1.6;
}

.framed-content a {
    color: #000000;
    font-weight: 600;
    text-decoration: underline;
}

.framed-content a:hover {
    color: var(--pink);
}

/* Button Styles */
.btn {
    display: block;
    background-color: var(--mint);
    color: var(--black);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: auto;
    max-width: max-content;
}

.btn:hover {
    background-color: var(--mint); /* Keep the same background color on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(93, 63, 211, 0.3);
}

/* Header Styles */
header {
    background-color: var(--purple);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--cream);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.menu-toggle-label {
    cursor: pointer;
    display: none;
}

.menu-checkbox {
    display: none;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--cream);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mint);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--purple);
    color: var(--cream);
    background-image: url('img/HDuW4a.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.8); /* Darker overlay for better text contrast */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--purple);
    color: white; /* Pure white for maximum contrast */
}

section:nth-child(even) h1, 
section:nth-child(even) h2,
section:nth-child(even) h3 {
    color: white; /* Pure white for headings */
}

section:nth-child(even) p {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); /* Text shadow for better readability */
}

/* Services Section */
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-card h3 {
    color: var(--purple);
    margin-bottom: 1rem;
}

/* Benefits Section */
.benefits ul {
    list-style-type: none;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    background-color: var(--mint);
    color: var(--purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.benefit-content {
    flex-grow: 1;
}

/* How It Works Section */
.how-it-works .steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    align-items: flex-start;
    background-color: var(--cream);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    background-color: var(--purple);
    color: var(--cream);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    font-weight: bold;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    color: var(--purple);
    margin-bottom: 0.5rem;
}

/* Horoscope Types Section */
.horoscope-types .types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.type-card {
    background-color: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.type-card:hover {
    transform: translateY(-10px);
}

.type-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.type-content {
    padding: 1.5rem;
}

.type-card h3 {
    color: #000000;
    margin-bottom: 1rem;
}

.type-card p {
    color: #000000;
}

.type-card .btn {
    margin-top: 1rem;
}

/* Testimonials Section */
.testimonials .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--cream);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    color: #000000;
    font-size: 1.05rem;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: rgba(93, 63, 211, 0.4); /* Darker quote mark for better visibility */
    position: absolute;
    left: -1.5rem;
    top: -1rem;
}

.testimonial-author {
    font-weight: bold;
    color: #3a25a8; /* Darker purple for better contrast */
}

/* FAQ Section */
.faq .faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question-label {
    background-color: var(--cream);
    color: var(--purple);
    padding: 1rem;
    display: block;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.faq-question-label:hover {
    background-color: var(--mint);
}

.faq-question-label::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-checkbox {
    display: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1rem;
    color: var(--black);
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
}

.faq-checkbox:checked ~ .faq-question-label::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Form Section */
.form-section {
    background-color: var(--purple);
    color: var(--cream);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 245, 225, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 500;
}

input, select, textarea {
    padding: 0.8rem;
    border-radius: 5px;
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--cream);
    color: var(--black);
    transition: border-color 0.3s ease;
}

option {
    color: black;
    background-color: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--mint);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
}

.checkbox-group label, 
.checkbox-group label a {
    color: white;
}

.checkbox-group label a {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--cream);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--mint);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--cream);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--mint);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 245, 225, 0.1);
    font-size: 0.9rem;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(51, 51, 51, 0.95);
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-text {
    font-size: 14px;
    margin-right: 15px;
}

.cookie-text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.cookie-button:hover {
    background-color: #ff5252;
}

@media (max-width: 768px) {
    .cookie-notice {
        flex-direction: column;
        padding: 10px;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Thanks Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.thanks-content {
    background-color: var(--cream);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    color: #000000;
}

.thanks-content h1, 
.thanks-section h1 {
    color: #000000 !important;
}

.thanks-content p {
    color: #000000;
    font-size: 1.05rem;
}

.thanks-content a:not(.btn) {
    color: #3a25a8;
    text-decoration: underline;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle-label {
        display: block;
        font-size: 1.5rem;
        color: var(--cream);
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--purple);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 100vh;
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 5px;
    }
    
    nav li {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .service-grid, .types-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .thanks-section {
        height: auto;
    }
}