:root {
    --hogwarts-gold: #D69F4C;
    --hogwarts-red: #740001;
    --bg-dark: #1A1A1A;
    --text-light: #E0E0E0;
    --glass-bg: rgba(26, 26, 26, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-light);
    background-color: #000;
    background-image: url('https://images.unsplash.com/photo-1618944847023-38aa00125eb8?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--hogwarts-gold);
    box-shadow: 0 0 20px rgba(214, 159, 76, 0.2);
    max-width: 1100px;
    /* Increased from 500px */
    width: 90%;
    /* text-align: center; REMOVED to allow left alignment in columns */
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* New class for the hero text side */
.hero-content {
    text-align: left;
}

/* Form container specific styles */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    /* Slight separation */
    padding: 20px;
    border-radius: 10px;
}

h1 {
    font-family: 'Cinzel', serif;
    color: var(--hogwarts-gold);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--hogwarts-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus {
    border-color: var(--hogwarts-gold);
    outline: none;
    box-shadow: 0 0 10px rgba(214, 159, 76, 0.3);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}


.plan-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 8px;
}

.plan-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Cinzel', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.plan-btn small {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    margin-top: 3px;
    text-transform: none;
}

.plan-btn.active {
    background: var(--hogwarts-gold);
    color: #000;
    border-color: var(--hogwarts-gold);
    box-shadow: 0 0 10px rgba(214, 159, 76, 0.3);
}

.plan-btn .price {
    color: #D69F4C !important;
    font-weight: bold;
    margin-top: 5px;
    font-size: 0.85rem;
}

.plan-btn.active .price {
    color: #8B6914 !important;
    font-weight: bold;
    margin-top: 5px;
    font-size: 0.85rem;
}

.plan-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #222;
}

.btn-magic {
    background: var(--hogwarts-gold);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-magic:hover {
    background: #e6b365;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 159, 76, 0.4);
}

.flashes {
    margin-bottom: 1rem;
}

.flash {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.flash.success {
    background: rgba(76, 214, 88, 0.2);
    border: 1px solid #4cd658;
    color: #4cd658;
}

@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        /* Stack vertically on tablets/phones */
        text-align: center;
        max-width: 600px;
    }

    .hero-content {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }


    .trust-bar {
        flex-direction: column;
        gap: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .live-activity {
        width: 90%;
        text-align: center;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Ensure Main Content (SEO text) and Footer span full width in the grid */
main,
footer {
    grid-column: 1 / -1;
    width: 100%;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1A1A1A;
    border: 2px solid var(--hogwarts-gold);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    color: #fff;
    box-shadow: 0 0 30px rgba(214, 159, 76, 0.4);
    position: relative;
    animation: scaleIn 0.3s ease;
}

.modal-icon {
    font-size: 4rem;
    color: var(--hogwarts-gold);
    margin-bottom: 20px;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--hogwarts-gold);
    margin-bottom: 15px;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ddd;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-telegram {
    background: #0088cc;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    transition: 0.2s;
}

.btn-telegram:hover {
    background: #0077b5;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}