/* Christmas Tree Collection - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-green: #2d5016;
    --christmas-red: #c41e3a;
    --accent-gold: #ffd700;
    --background-cream: #faf9f6;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #e0e0e0;
    --success-green: #28a745;
    --error-red: #dc3545;
    --warning-orange: #ff9800;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Mountains of Christmas', cursive;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

a {
    color: var(--christmas-red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--christmas-red) 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

header .collection-date {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

header .slots-counter {
    font-size: 1rem;
    background-color: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
}

header .slots-counter #slots-remaining {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

header .slots-counter #slots-remaining.warning {
    color: var(--warning-orange);
}

/* How It Works Section */
.how-it-works {
    margin: 40px 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.steps {
    display: flex;
    gap: 30px;
    justify-content: space-around;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--christmas-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Forms */
.registration-form,
.waiting-list-page form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.registration-form h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group input.valid {
    border-color: var(--success-green);
}

.form-group input.invalid {
    border-color: var(--error-red);
}

.form-group .helper-text {
    font-size: 14px;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 20px;
}

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

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
}

.error-message {
    color: var(--error-red);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.warning-message {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-orange);
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    color: #856404;
}

.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.radio-option:hover {
    border-color: var(--primary-green);
    background-color: #f8fdf8;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.radio-option label strong {
    display: block;
    color: var(--primary-green);
    margin-bottom: 3px;
    font-size: 16px;
}

.radio-option label small {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-green);
    background-color: #f0f8f0;
}

.radio-option:has(input[type="radio"]:checked) label strong {
    color: var(--primary-green);
}

.price-display {
    background-color: #f0f8f0;
    border-left: 4px solid var(--primary-green);
    padding: 15px;
    margin: 20px 0;
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background-color: #234012;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--christmas-red);
    color: white;
}

.btn-secondary:hover {
    background-color: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payment Information */
.payment-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.payment-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.payment-method {
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.payment-method h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.payment-method .qr-code {
    max-width: 200px;
    height: auto;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    margin: 10px 0;
}

/* FAQ Section */
.faq {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.faq h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Contact Section */
.contact {
    text-align: center;
    margin: 30px 0;
}

/* Thank You Page */
.thank-you-page {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.ref-box {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--christmas-red) 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 600px;
}

.ref-box h2 {
    color: white;
    font-size: 2rem;
    margin: 10px 0;
}

.info-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
    text-align: left;
}

.info-box ol {
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 15px;
}

.payment-reminder {
    background: #fff8f0;
    border-left: 4px solid var(--accent-gold);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
}

.payment-reminder table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.payment-reminder table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
}

.payment-reminder .note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.contact-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Privacy Page */
.privacy-page, .waiting-list-page {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.privacy-page section {
    margin-bottom: 30px;
}

.privacy-page h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.privacy-page ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-page li {
    margin-bottom: 8px;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

/* Waiting List Page */
.message-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-orange);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

.message-box h2 {
    color: #856404;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: white;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(45, 80, 22, 0.95);
    color: white;
    padding: 20px;
    z-index: 9998;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
}

.cookie-content .btn {
    padding: 10px 20px;
    font-size: 16px;
}

.cookie-content a {
    color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .steps {
        flex-direction: column;
    }

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

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }
}

/* Snow Effect */
@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.snowflake {
    position: fixed;
    top: -10vh;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2em;
    animation: snowfall 10s linear infinite;
    pointer-events: none;
    z-index: 9999;
}
