/* ═══════════════════════════════════════════════════════
   MURIOUS 20.0 — Registration Page Styles
   Standalone page with same cinematic theme
   ═══════════════════════════════════════════════════════ */

/* ── Stars background animation ── */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

@keyframes feeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes feeGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(212, 168, 83, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 168, 83, 0.5), 0 0 60px rgba(212, 168, 83, 0.15);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes heroGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
    }

    50% {
        text-shadow: 0 0 40px rgba(212, 168, 83, 0.6), 0 0 80px rgba(212, 168, 83, 0.2);
    }
}

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

body {
    font-family: 'Raleway', sans-serif;
    background: #050510;
    color: #e8e4df;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Starfield Background ── */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.3;
}

.star.large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px 1px rgba(212, 168, 83, 0.4);
}

/* ── Floating particles ── */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.6), transparent);
    border-radius: 50%;
    animation: floatUp var(--speed, 12s) linear infinite;
    animation-delay: var(--delay, 0s);
    z-index: 0;
    pointer-events: none;
}

/* ── Page wrapper ── */
.reg-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px 60px;
}

/* ── Back to Home link ── */
.back-link {
    position: absolute;
    top: 24px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: rgba(212, 168, 83, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
    z-index: 10;
}

.back-link:hover {
    color: #f0d48a;
    transform: translateX(-3px);
}

.back-link svg {
    transition: transform 0.3s;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* ── Page Header ── */
.reg-header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.reg-header .section-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d4a853;
    margin-bottom: 12px;
    display: block;
}

.reg-header .page-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #f5f0e8;
    font-weight: 700;
    margin-bottom: 8px;
    animation: heroGlow 4s ease-in-out infinite;
}

.reg-header .page-subtitle {
    font-size: 0.95rem;
    color: rgba(156, 163, 175, 0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.title-ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ── Form Card ── */
.reg-card {
    width: 100%;
    max-width: 540px;
    background: rgba(12, 12, 25, 0.65);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 20px;
    padding: 40px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 168, 83, 0.08);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.reg-card:hover {
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(212, 168, 83, 0.06),
        inset 0 1px 0 rgba(212, 168, 83, 0.12);
}

/* Card glow accent line */
.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5), transparent);
}

/* ── Form Groups ── */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d4a853;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 10, 20, 0.7);
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: 10px;
    color: #e8e4df;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(156, 163, 175, 0.4);
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(212, 168, 83, 0.5);
    box-shadow: 0 0 16px rgba(212, 168, 83, 0.1);
    background: rgba(10, 10, 20, 0.9);
}

.form-group input.invalid {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.1);
}

/* ── Label hint ── */
.label-hint {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    color: rgba(156, 163, 175, 0.5);
}

/* ── Event Checkbox Cards Grid ── */
.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.event-card {
    position: relative;
    cursor: pointer;
    display: block;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.event-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.event-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(212, 168, 83, 0.1);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}

.event-card:hover .event-card-inner {
    border-color: rgba(212, 168, 83, 0.3);
    background: rgba(10, 10, 20, 0.8);
    transform: translateY(-2px);
}

.event-card input:checked~.event-card-inner {
    border-color: rgba(212, 168, 83, 0.6);
    background: rgba(212, 168, 83, 0.08);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.12), inset 0 0 20px rgba(212, 168, 83, 0.04);
}

/* .event-icon {
    font-size: 1.8rem;
    line-height: 1; */
   .event-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}


.event-name {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f5f0e8;
    letter-spacing: 0.5px;
}

.event-fee {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #d4a853;
}

/* Checkmark badge */
.event-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d4a853;
    color: #0a0a0f;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-card input:checked~.event-check {
    opacity: 1;
    transform: scale(1);
}

/* Error state for event grid */
.event-grid.invalid .event-card-inner {
    border-color: rgba(239, 68, 68, 0.4);
}

/* ── Fee Display (Total) ── */
.fee-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(212, 168, 83, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
    animation: feeGlow 3s ease-in-out infinite;
}

.fee-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fee-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(212, 168, 83, 0.8);
}

.fee-count {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    color: rgba(156, 163, 175, 0.5);
    letter-spacing: 0.5px;
}

.fee-amount {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #f0d48a;
    text-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
    transition: all 0.3s;
}

/* ── Submit Button ── */
.reg-submit {
    width: 100%;
    padding: 16px 32px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0a0a0f;
    background: linear-gradient(135deg, #d4a853, #f0d48a, #d4a853);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.reg-submit:hover {
    background-position: 100% 50%;
    box-shadow: 0 4px 24px rgba(212, 168, 83, 0.4);
    transform: translateY(-2px);
}

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

.reg-submit .btn-text {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s;
}

.reg-submit .btn-magic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.reg-submit.submitted .btn-text {
    opacity: 0;
}

.reg-submit.submitted .btn-magic {
    opacity: 1;
}

/* ── Loading Overlay ── */
.reg-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 20px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.reg-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.reg-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 168, 83, 0.15);
    border-top-color: #d4a853;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.reg-loading-overlay span {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #d4a853;
    letter-spacing: 2px;
}

/* ── Toast Messages ── */
.reg-message {
    position: fixed;
    top: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 14px;
    backdrop-filter: blur(20px);
    z-index: 100;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 400px;
}

.reg-message.active {
    transform: translateX(0);
}

.reg-message--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.reg-message--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.reg-msg-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reg-message--success .reg-msg-icon {
    color: #10b981;
}

.reg-message--error .reg-msg-icon {
    color: #ef4444;
}

.reg-message strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: #f5f0e8;
}

.reg-message p {
    font-size: 0.82rem;
    color: rgba(156, 163, 175, 0.8);
    line-height: 1.4;
    margin: 0;
}

/* ── Footer ── */
.reg-footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(156, 163, 175, 0.35);
}

.reg-footer a {
    color: #d4a853;
    text-decoration: none;
    transition: color 0.3s;
}

.reg-footer a:hover {
    color: #f0d48a;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .reg-page {
        padding: 20px 14px 40px;
    }

    .reg-header {
        margin-top: 50px;
    }

    .back-link {
        top: 16px;
        left: 16px;
        font-size: 0.78rem;
    }

    .reg-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .fee-display {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .reg-message {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}