/* Global Styles */
:root {
    --bg-gradient-start: #0d1117;
    --bg-gradient-end: #161b22;
    --accent-turquoise: #08FDD8;
    --accent-purple: #ff4f9b;
    --text-color: #f1f1f1;
    --button-bg: #5e2ced;
    --button-hover: #ffe600;
    --container-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Required styles from user rules */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

body:has(#menu-toggle:checked) {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-turquoise);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1.5rem;
}

.container > h2, 
.container > p {
    text-align: center;
}

a {
    color: var(--accent-turquoise);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--button-hover);
}

/* Buttons */
.btn {
    display: block;
    background-color: var(--button-bg);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: auto;
    max-width: max-content;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-turquoise);
    color: var(--accent-turquoise);
}

.btn-secondary:hover {
    background-color: var(--accent-turquoise);
    color: var(--bg-gradient-start);
}

.btn-nav {
    background-color: var(--accent-purple);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.btn-nav:hover {
    background-color: var(--button-hover);
    color: var(--bg-gradient-start);
}

/* Header & Navigation */
header {
    background-color: rgba(13, 17, 23, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--accent-turquoise);
}

.menu-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    border-radius: 3px;
    transition: 0.4s;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-turquoise);
}

/* Hero Section */
.hero {
    background-image: url('./img/UZVl1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: calc(100vh - 77px);
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

/* Section Styling */
section {
    padding: 80px 0;
}

/* Cards Grid Layout */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.card {
    background: linear-gradient(145deg, #121a29, #1a2333);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-turquoise);
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

/* Steps Section */
.steps {
    background: linear-gradient(145deg, #0f1620, #192334);
}

.step-card {
    position: relative;
    padding: 1.5rem;
    background: rgba(30, 40, 60, 0.3);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-purple);
    margin-bottom: 1rem;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Form Section */
.form-section {
    background: linear-gradient(145deg, #121a29, #1a2333);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-turquoise);
}

select.form-control {
    cursor: pointer;
}

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: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(30, 40, 60, 0.3);
}

.faq-checkbox {
    display: none;
}

.faq-question {
    display: block;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-turquoise);
    transition: background-color 0.3s;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-checkbox:checked ~ .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-checkbox:checked ~ .faq-question {
    background-color: rgba(8, 253, 216, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

/* Footer Styling */
footer {
    background-color: #0a0f16;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-turquoise);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent-turquoise);
}

.footer-contact address {
    font-style: normal;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--text-color);
}

.footer-contact a:hover {
    color: var(--accent-turquoise);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.legal-links {
    margin-bottom: 1rem;
}

.legal-links a {
    color: var(--text-color);
    opacity: 0.7;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--accent-turquoise);
}

.copyright {
    opacity: 0.6;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1c2331;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Policy Pages */
.policy-container {
    background: linear-gradient(145deg, #121a29, #1a2333);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin: 2rem auto;
    max-width: 900px;
}

.policy-container h1 {
    text-align: center;
    color: var(--accent-turquoise);
}

.policy-container p,
.policy-container ul,
.policy-container ol {
    margin-bottom: 1rem;
}

.policy-container ul,
.policy-container ol {
    margin-left: 2rem;
}

.policy-container li {
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    background: linear-gradient(145deg, #121a29, #1a2333);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    margin: 5rem auto;
    max-width: 600px;
}

.thanks-container .icon {
    font-size: 4rem;
    color: var(--accent-turquoise);
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Mobile Navigation */
    .menu-toggle-label {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-gradient-start);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    nav ul {
        flex-direction: column;
        padding: 80px 20px 20px;
        height: 100%;
        gap: 5px;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
    }

    #menu-toggle:checked ~ nav {
        transform: translateX(0);
        max-height: 100vh;
    }

    #menu-toggle:checked ~ .menu-toggle-label .bar:first-child {
        transform: rotate(45deg) translate(6px, 5px);
    }

    #menu-toggle:checked ~ .menu-toggle-label .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .menu-toggle-label .bar:last-child {
        transform: rotate(-45deg) translate(6px, -5px);
    }

    /* Mobile Sections */
    section {
        padding: 60px 0;
    }

    .hero {
        height: 80vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .thanks-section {
        height: auto;
    }
}
