/* --- Design System & CSS Variables --- */
:root {
    --bg-dark: #0a070f;
    --bg-card: rgba(22, 15, 34, 0.7);
    --bg-card-hover: rgba(33, 23, 50, 0.85);
    --color-orange: #ff7a00;
    --color-orange-glow: rgba(255, 122, 0, 0.6);
    --color-purple: #8b5cf6;
    --color-purple-glow: rgba(139, 92, 246, 0.4);
    --color-green: #00e676;
    --color-green-glow: rgba(0, 230, 118, 0.4);
    --text-primary: #f3f0f7;
    --text-secondary: #a78bfa;
    --text-muted: #6d589b;
    --border-color: rgba(139, 92, 246, 0.2);
    --border-hover: rgba(255, 122, 0, 0.5);
    --font-heading: 'Creepster', cursive;
    --font-body: 'Outfit', sans-serif;
    --shadow-spooky: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --transition-speed: 0.3s;
}

/* --- Base Resets & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Fog and Ambient Animations --- */
.mist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 122, 0, 0.06) 0%, transparent 50%);
    opacity: 0.8;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: normal;
    letter-spacing: 1px;
}

.spooky-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1;
    color: #fff;
    text-shadow: 
        0 0 10px var(--color-orange-glow),
        0 0 20px var(--color-orange-glow),
        0 0 40px var(--color-orange);
    margin-bottom: 1.5rem;
}

.spooky-title .highlight {
    color: var(--color-orange);
    text-shadow: 
        0 0 10px rgba(255, 122, 0, 0.8),
        0 0 30px rgba(255, 122, 0, 0.6);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 0 15px var(--color-purple-glow);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
    box-shadow: 0 0 10px var(--color-orange);
}

.section-title.text-left {
    left: 0;
    transform: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.section-title.text-left::after {
    left: 0;
    width: 60%;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 3;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 7, 15, 0.4) 0%, rgba(10, 7, 15, 0.95) 100%), url('assets/background.jpg') no-repeat center center;
    background-size: cover;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* --- Main Layout Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

section {
    padding: 6rem 0;
}

/* --- Grid & Cards --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-spooky);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-orange));
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px 0 rgba(255, 122, 0, 0.15);
}

.card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--color-orange), var(--color-purple));
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--color-orange-glow);
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #fff;
}

.highlight-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-text i {
    color: var(--color-orange);
}

.price-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-tier:last-of-type {
    border-bottom: none;
}

.tier-name {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.tier-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-orange);
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    font-style: italic;
}

.payment-method {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.payment-method i {
    color: var(--color-green);
    margin-right: 0.5rem;
}

.etransfer-email {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px dashed var(--color-purple);
    font-family: monospace;
    font-size: 1rem;
    color: var(--color-orange);
    word-break: break-all;
    text-align: center;
    margin: 0.5rem 0 1rem;
}

.etransfer-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- RSVP Section --- */
.rsvp-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .rsvp-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- Spooky Forms --- */
.spooky-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

input[type="text"],
input[type="number"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1.2rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.3);
}

/* Custom Radio Buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    font-weight: 400;
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    height: 20px;
    width: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    transition: all var(--transition-speed);
}

.radio-label:hover input ~ .radio-custom {
    border-color: var(--color-orange);
}

.radio-label input:checked ~ .radio-custom {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    box-shadow: 0 0 8px var(--color-orange-glow);
}

.radio-custom::after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-label input:checked ~ .radio-custom::after {
    display: block;
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-orange), #d95300);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.4);
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 122, 0, 0.6);
}

.submit-button {
    background: linear-gradient(135deg, var(--color-purple), #6d28d9);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--color-orange), #d95300);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* --- Stats display side --- */
.stats-card {
    background: linear-gradient(145deg, rgba(22, 15, 34, 0.8), rgba(12, 8, 20, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-spooky);
    position: relative;
    overflow: hidden;
}

.stats-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.stats-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.counter-display {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1;
    text-shadow: 
        0 0 10px rgba(255, 122, 0, 0.5),
        0 0 20px rgba(255, 122, 0, 0.3);
    margin-bottom: 0.5rem;
    animation: pulseGlow 2s infinite ease-in-out;
}

.counter-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.stat-breakdown {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.breakdown-item .lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breakdown-item .val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

/* Recent registrations list */
.recent-registrations {
    text-align: left;
}

.recent-registrations h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-registrations ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.recent-registrations ul::-webkit-scrollbar {
    width: 6px;
}

.recent-registrations ul::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.recent-registrations ul::-webkit-scrollbar-thumb {
    background: var(--color-purple);
    border-radius: 10px;
}

.recent-registrations li {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--color-orange);
    padding: 0.6rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.4s ease-out;
}

.recent-registrations li.not-attending {
    border-left-color: #6b7280;
    opacity: 0.7;
}

.reg-name {
    font-weight: 600;
}

.reg-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Calculator Section --- */
.calculator-card {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 650px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.calc-group:last-of-type {
    margin-bottom: 0;
}

/* Quantity inputs */
.number-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: fit-content;
}

.number-input-wrapper input {
    width: 60px;
    text-align: center;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.5rem 0;
}

.number-input-wrapper input::-webkit-outer-spin-button,
.number-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-qty {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.btn-qty:hover {
    color: var(--color-orange);
}

.calc-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.total-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-green);
    text-shadow: 0 0 15px var(--color-green-glow);
}

.payment-recommendation {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.payment-recommendation strong {
    color: var(--color-orange);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    background: #06040a;
    padding: 3rem 0;
    text-align: center;
    margin-top: 6rem;
    position: relative;
    z-index: 3;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: color var(--transition-speed);
}

.socials a:hover {
    color: var(--color-orange);
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 122, 0, 0.5),
            0 0 20px rgba(255, 122, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 122, 0, 0.8),
            0 0 30px rgba(255, 122, 0, 0.5),
            0 0 45px rgba(255, 122, 0, 0.3);
    }
}

.pulse-button {
    animation: buttonPulse 3s infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 122, 0, 0.4);
    }
    50% {
        box-shadow: 
            0 8px 28px rgba(255, 122, 0, 0.7),
            0 0 15px rgba(255, 122, 0, 0.4);
    }
}

/* --- Mobile Specific Optimizations (< 600px) --- */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }
    .container {
        padding: 0 1.25rem;
    }
    section {
        padding: 4rem 0;
    }
    .hero {
        padding: 1.5rem;
        min-height: 500px;
    }
    .hero-subtitle {
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }
    .hero-tagline {
        margin-bottom: 2rem;
    }
    .card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    .stats-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
    .counter-display {
        font-size: 3.5rem;
    }
    .stat-breakdown {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    .breakdown-item .val {
        font-size: 1.3rem;
    }
    .calc-result {
        padding: 1.5rem;
        width: 100%;
    }
    .number-input-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    .number-input-wrapper input {
        flex-grow: 1;
    }
    .submit-button {
        padding: 0.85rem;
        font-size: 1rem;
    }
}

