/* ============================================
   Jaiyn RSVP - Huntrix Birthday Theme
   Purple Superhero Colour Scheme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800&display=swap');

/* ---- Base ---- */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #1a0a2e;
    color: #f0e6ff;
    min-height: 100vh;
}

/* ---- Background Stars ---- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 15%, #c084fc 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 40%, #a855f7 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 10%, #e9d5ff 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 60%, #c084fc 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 25%, #ddd6fe 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 70%, #a78bfa 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 45%, #c084fc 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 80%, #e9d5ff 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 90%, #a855f7 0%, transparent 100%),
        radial-gradient(2px 2px at 35% 55%, #ddd6fe 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Navbar ---- */
.navbar {
    background-color: #2d0a4e !important;
    border-bottom: 3px solid #9333ea;
    z-index: 100;
    position: relative;
}

.navbar-brand {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #c084fc !important;
    text-shadow: 0 0 12px #a855f7;
}

.nav-link {
    color: #e9d5ff !important;
    font-weight: 700;
}

.nav-link:hover {
    color: #c084fc !important;
}

/* ---- Masthead ---- */
.masthead {
    position: relative;
    background-image: url('../images/masthead.webp');
    background-size: 48%;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 60px 0 40px;
    overflow: hidden;
    z-index: 1;
}

.masthead::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 10, 46, 0.55);
    z-index: 0;
}

.masthead .container {
    position: relative;
    z-index: 1;
}

/* iPad landscape specifically */
@media (max-width: 1366px) and (orientation: landscape) and (hover: none) {
    .masthead {
        background-size: 100%;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .masthead {
        background-size: 80%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .masthead {
        background-size: 100%;
        background-position: center top;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .masthead {
        background-size: 120%;
        background-position: center top;
    }
}

.huntrix-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.huntrix-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border: 3px solid #c084fc;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    line-height: 104px;
    text-align: center;
    font-size: 3.2rem;
    box-shadow: 0 0 30px rgba(167,139,250,0.6), 0 0 60px rgba(147,51,234,0.3);
    position: relative;
}

.huntrix-badge::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(192,132,252,0.4);
    animation: spin 12s linear infinite;
}

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

.huntrix-title {
    font-family: 'Bangers', cursive;
    font-size: 4.5rem;
    letter-spacing: 6px;
    color: #ffffff;
    text-shadow: 3px 3px 0 #7c3aed, 0 0 30px rgba(192,132,252,0.8);
    line-height: 1;
    margin: 0;
}

.huntrix-subtitle {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #c084fc;
    text-shadow: 0 0 12px rgba(192,132,252,0.7);
}

.masthead-event-info {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(192,132,252,0.3);
    border-radius: 16px;
    padding: 18px 28px;
    margin-top: 24px;
    backdrop-filter: blur(6px);
    text-align: center;
}

.masthead-event-info .event-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a78bfa;
    font-weight: 700;
}

.masthead-event-info .event-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f0e6ff;
}

/* ---- Starburst decorations ---- */
.star-deco {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.35;
    animation: twinkle 3s ease-in-out infinite;
}

.star-deco.s1 { top: 18%; left: 8%; animation-delay: 0s; }
.star-deco.s2 { top: 30%; right: 10%; animation-delay: 0.8s; }
.star-deco.s3 { bottom: 20%; left: 15%; animation-delay: 1.5s; }
.star-deco.s4 { top: 10%; right: 22%; animation-delay: 2.1s; font-size: 1.2rem; }

@keyframes twinkle {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* ---- RSVP Deadline Banner ---- */
.deadline-banner {
    background: linear-gradient(90deg, #7c3aed, #9333ea, #7c3aed);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.deadline-banner span {
    color: #f9fafb;
}

.deadline-banner strong {
    color: #fde68a;
}

/* ---- Form Card ---- */
.rsvp-card {
    background: rgba(45, 10, 78, 0.85);
    border: 1px solid rgba(192,132,252,0.35);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(124,58,237,0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
}

.rsvp-card-title {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    letter-spacing: 3px;
    color: #c084fc;
    text-shadow: 0 0 12px rgba(192,132,252,0.5);
}

/* ---- Form Elements ---- */
.form-label {
    font-weight: 700;
    color: #ddd6fe;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-control, .form-select {
    background-color: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(192,132,252,0.4);
    color: #f0e6ff;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.25);
    color: #f0e6ff;
    outline: none;
}

.form-control::placeholder {
    color: rgba(221,214,254,0.4);
}

.form-select option {
    background-color: #2d0a4e;
    color: #f0e6ff;
}

.input-group-text {
    background-color: rgba(124,58,237,0.4);
    border: 1.5px solid rgba(192,132,252,0.4);
    color: #c084fc;
    font-weight: 700;
    border-radius: 10px 0 0 10px;
}

/* Attending counter row */
.attendee-row {
    display: flex;
    gap: 16px;
}

.attendee-row .attendee-field {
    flex: 1;
}

/* ---- RSVP Radio Buttons ---- */
.rsvp-choice-wrap {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.rsvp-choice {
    flex: 1;
    position: relative;
}

.rsvp-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.rsvp-choice label {
    display: block;
    text-align: center;
    padding: 14px 10px;
    border-radius: 12px;
    border: 2px solid rgba(192,132,252,0.4);
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.05);
    color: #ddd6fe;
}

.rsvp-choice input[type="radio"]:checked + label {
    border-color: #a855f7;
    background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(147,51,234,0.4));
    color: #fff;
    box-shadow: 0 0 16px rgba(168,85,247,0.4);
}

.rsvp-choice label:hover {
    border-color: #c084fc;
    background: rgba(192,132,252,0.1);
}

.rsvp-choice .choice-icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

/* ---- Submit Button ---- */
.btn-huntrix {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    border: none;
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    letter-spacing: 3px;
    padding: 14px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(147,51,234,0.5);
    transition: all 0.25s ease;
    cursor: pointer;
    width: 100%;
}

.btn-huntrix:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    box-shadow: 0 6px 30px rgba(147,51,234,0.7);
    transform: translateY(-2px);
    color: #fff;
}

.btn-huntrix:active {
    transform: translateY(0);
}

/* ---- Info sidebar ---- */
.info-card {
    background: rgba(45,10,78,0.7);
    border: 1px solid rgba(192,132,252,0.25);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.info-card h5 {
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    color: #c084fc;
    font-size: 1.3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(192,132,252,0.15);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a78bfa;
    font-weight: 700;
}

.info-text {
    font-weight: 700;
    color: #f0e6ff;
    font-size: 1rem;
    margin: 0;
}

.costume-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(147,51,234,0.4));
    border: 1px solid rgba(192,132,252,0.5);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.85rem;
    color: #e9d5ff;
    font-weight: 700;
    margin-top: 6px;
}

/* ---- Footer ---- */
footer {
    background-color: #120620;
    border-top: 2px solid #4c1d95;
    color: #a78bfa;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

footer strong {
    color: #c084fc;
}

/* ---- Thank You Page ---- */
.thankyou-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.thankyou-card {
    background: rgba(45,10,78,0.85);
    border: 1px solid rgba(192,132,252,0.35);
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 8px 50px rgba(124,58,237,0.4);
    max-width: 580px;
    width: 100%;
}

.thankyou-card .hero-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 16px rgba(192,132,252,0.7));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.thankyou-card h1 {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    letter-spacing: 4px;
    color: #c084fc;
    text-shadow: 0 0 20px rgba(192,132,252,0.6);
}

.thankyou-card p {
    color: #ddd6fe;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.7;
}

.confetti-row {
    font-size: 2rem;
    letter-spacing: 6px;
    margin: 20px 0;
    opacity: 0.8;
}

/* ---- What to Expect ---- */
.expect-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(192,132,252,0.15);
}

.expect-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    margin-top: 2px;
    filter: drop-shadow(0 0 6px rgba(192,132,252,0.5));
}

.expect-title {
    font-weight: 800;
    color: #f0e6ff;
    font-size: 0.92rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.expect-desc {
    font-size: 0.82rem;
    color: #a78bfa;
    font-weight: 600;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ---- Consent Checkboxes ---- */
.form-check-input {
    background-color: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(192,132,252,0.4);
    width: 1.2em;
    height: 1.2em;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: #7c3aed;
    border-color: #a855f7;
}

.form-check-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.25);
}

.form-check-label {
    color: #ddd6fe;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    padding-left: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .col-lg-6.order-2 {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .huntrix-title { font-size: 3rem; }
    .rsvp-card { padding: 24px 18px; }
    .thankyou-card { padding: 36px 24px; }
    .rsvp-choice-wrap { flex-direction: column; gap: 10px; }
    .attendee-row { flex-direction: column; gap: 0; }
    .col-lg-6.order-2 {
        margin-top: 20px;
    }
}
