/* Main Styles for domain - Polish Horoscope Service */

/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 40px;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #16213E;
    background-color: #F3E9DC;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section[id] { 
    scroll-margin-top: 40px; 
}

div { 
    word-break: break-word; 
    overflow-wrap: break-word; 
}

a {
    color: #5D3A9B;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFB347;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    background-color: #FFB347;
    color: #16213E;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: auto;
    max-width: max-content;
    display: block;
}

.btn:hover {
    background-color: #5D3A9B;
    color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
}

.container > h2, .container > p {
    text-align: center;
}

.container > p {
    margin-bottom: 2rem;
}

/* Header Styles */
header {
    background-color: #5D3A9B;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    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: #FFFFFF;
}

.menu-toggle {
    display: none;
}

.menu-toggle-label {
    display: none;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: #FFFFFF;
    font-weight: 500;
}

nav ul li a:hover {
    color: #FFB347;
}

/* Hero Section */
.hero {
    background: url('./img/WmkhX.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #FFFFFF;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 33, 62, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #F3E9DC;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #F3E9DC;
    transition: transform 0.3s ease;
    display: grid;
    grid-template-rows: 1fr auto auto;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card-content h3 {
    margin-bottom: 1rem;
    color: #5D3A9B;
}

.service-card .btn {
    margin: 0 auto 1.5rem;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background-color: #5D3A9B;
    color: #FFFFFF;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-icon {
    font-size: 2.5rem;
    color: #FFB347;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: #F3E9DC;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: #5D3A9B;
    margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background-color: #F3E9DC;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    background-color: #5D3A9B;
    color: #FFFFFF;
    padding: 1rem;
    cursor: pointer;
    display: block;
    position: relative;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-checkbox:checked ~ .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

/* Form Section */
.form-section {
    padding: 5rem 0;
    background-color: #F3E9DC;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #5D3A9B;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #FFFFFF;
    color: #16213E;
}

select {
    background-color: #FFFFFF;
    color: #16213E;
}

.checkbox-group {
    margin-top: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.form-submit {
    margin-top: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: #5D3A9B;
    color: #FFFFFF;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: #16213E;
    color: #FFFFFF;
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column {
    padding: 0 1rem;
}

.footer-column h3 {
    color: #FFB347;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #FFFFFF;
}

.footer-column a:hover {
    color: #FFB347;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 400px;
    min-width: 300px;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cookie-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #16213E;
}

.cookie-text {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Thanks Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    text-align: center;
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 5rem auto;
    max-width: 600px;
}

/* Policies Pages */
.policy-section {
    padding: 5rem 0;
}

.policy-container {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 900px;
}

.policy-container h1 {
    color: #5D3A9B;
    margin-bottom: 2rem;
}

/* Additional Pages */
.page-header {
    background-color: #5D3A9B;
    padding: 3rem 0;
    color: #FFFFFF;
    text-align: center;
}

.page-content {
    padding: 5rem 0;
}

/* Blog */
.blog-post {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.blog-post h2 {
    color: #5D3A9B;
}

.blog-meta {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Mobile Menu */
#menu-toggle {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .menu-toggle-label {
        display: block;
        cursor: pointer;
        color: #FFFFFF;
        font-size: 1.5rem;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #5D3A9B;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    #menu-toggle:checked ~ nav {
        max-height: 100vh;
    }
    
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .thanks-section {
        height: auto;
    }
}
