/* Main Styles for domain - Polish Horoscope Consultation */

/* Global Styles */
:root {
    --bg-color: #0e0c28;
    --primary-color: #c9184a;
    --accent1-color: #ff9f1c;
    --accent2-color: #2ec4b6;
    --text-color: #f8f9fa;
    --block-bg-color: #14142b;
    --gradient: linear-gradient(135deg, #c9184a 0%, #2ec4b6 100%);
    --transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

body:has(#menu-toggle:checked) {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.container > h2, .container > p.section-description {
    text-align: center;
}

.container > p.section-description {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 60px;
    background: var(--gradient);
    border-radius: 2px;
}

a {
    color: var(--accent1-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

p {
    margin-bottom: 1rem;
}

/* Header Styles */
header {
    background-color: rgba(14, 12, 40, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
}

.logo:hover {
    text-decoration: none;
    transform: scale(1.05);
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--accent1-color);
    text-decoration: none;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

/* Mobile Menu Toggle */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 12, 40, 0.7);
    z-index: -1;
}

.hero-content {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Button Styles */
.btn {
    margin: auto;
    max-width: max-content;
    display: block;
    padding: 0.8rem 2rem;
    background: var(--gradient);
    color: var(--text-color);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(201, 24, 74, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 24, 74, 0.4);
    text-decoration: none;
}

/* Section Styles */
section {
    padding: 4rem 0;
    position: relative;
}

.section-bg {
    background-color: var(--block-bg-color);
}

/* About Us Section */
.about-us {
    background: var(--block-bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    text-align: left;
}

.about-text h2:after {
    left: 0;
    transform: none;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--block-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 0.75rem;
    color: var(--accent1-color);
}

.service-content p {
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Benefits Section */
.benefits {
    background: var(--block-bg-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: rgba(20, 20, 43, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-card h3 {
    color: var(--accent2-color);
    margin-bottom: 0.75rem;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--block-bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 15px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--accent1-color);
}

/* Consultation Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
}

.step-card {
    background-color: var(--block-bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(201, 24, 74, 0.3);
}

.step-card h3 {
    margin-top: 1rem;
    color: var(--accent2-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--block-bg-color);
}

.faq-checkbox {
    display: none;
}

.faq-question {
    background-color: rgba(20, 20, 43, 0.8);
    color: var(--text-color);
    padding: 1rem;
    cursor: pointer;
    display: block;
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(20, 20, 43, 1);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-checkbox:checked + .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-checkbox:checked + .faq-question + .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

/* Contact Form Section */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--block-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent1-color);
    background-color: rgba(255, 255, 255, 0.1);
}

select.form-control option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-group label a {
    color: var(--accent1-color);
}

/* Footer Styles */
footer {
    background-color: rgba(11, 10, 30, 0.95);
    padding: 3rem 0 2rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    color: var(--accent1-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: var(--text-color);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--accent1-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    min-width: 300px;
    max-width: 320px;
    background-color: var(--block-bg-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    display: none;
}

.cookie-popup.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.cookie-text {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.cookie-accept {
    background: var(--gradient);
    color: white;
    border: none;
    flex: 2;
}

.cookie-accept:hover {
    box-shadow: 0 4px 10px rgba(201, 24, 74, 0.3);
}

.cookie-more {
    background: transparent;
    border: 1px solid var(--accent1-color);
    color: var(--accent1-color);
    flex: 1;
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 5rem auto;
    background-color: var(--block-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: var(--accent1-color);
    margin-bottom: 1rem;
    text-align: left;
}

.policy-section h2:after {
    left: 0;
    transform: none;
}

.policy-section p {
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Thank You Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    max-width: 600px;
    margin: 5rem auto;
    background-color: var(--block-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.thanks-icon {
    font-size: 4rem;
    color: var(--accent2-color);
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 1s ease forwards;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        width: 95%;
    }
    
    .menu-icon {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--block-bg-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
        padding: 2rem;
        z-index: 999;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    #menu-toggle:checked ~ nav {
        right: 0;
        max-height: 100vh;
    }
    
    #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .thanks-section {
        height: auto;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .service-image {
        height: 180px;
    }
}
