/* Netflix Sans App Fonts */
@font-face {
    font-family: 'Netflix Sans App UCd';
    src: url('fonts/NetflixSansApp-UCd.woff2') format('woff2'),
        url('fonts/NetflixSansApp-UCd.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Netflix Sans App';
    src: url('fonts/NetflixSansApp-Regular.woff2') format('woff2'),
        url('fonts/NetflixSansApp-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Netflix Sans App';
    src: url('fonts/NetflixSansApp-Bold.woff2') format('woff2'),
        url('fonts/NetflixSansApp-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Netflix Sans App UCd';
    src: url('fonts/NetflixSansApp-UCdMedium.woff2') format('woff2'),
        url('fonts/NetflixSansApp-UCdMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Netflix Sans App';
    src: url('fonts/NetflixSansApp-Italic.woff2') format('woff2'),
        url('fonts/NetflixSansApp-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Bridgerton Color Scheme */
:root {
    --bg-left: #6b5b7f;
    --bg-right: #6a5a7d;
    --bg-center: #5b6f8e;
    --panel-bg: rgba(121, 121, 121, 0.22);
    --panel-border: rgba(255, 255, 255, 0.877);
    --text-main: #ffffff;
    --text-muted: rgba(255,255,255,0.75);
    --btn-bg: transparent;
    --btn-bg-active: #8b80a3;
    --input-bg: rgba(49, 13, 49, 0.603);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
}

p {
    margin-block-end: 0;
    margin-block-start: 10px;
}

/* LINK STYLES */
a {
    color: #e8e8e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

a:visited {
    color: #f4f4f4;
}

/* PAGE BACKGROUND */
.page {
    min-height: 100vh;
    background:
        url("assets/bg.jpg") top center / cover no-repeat,
        linear-gradient(
            90deg,
            var(--bg-left),
            var(--bg-center) 50%,
            var(--bg-right)
        );
    display: flex;
    justify-content: center;
    background-attachment: fixed;
}

/* Mobile/Tablet: use cover instead of auto */
@media (max-width: 768px) {
    .page {
        background-size: cover;
    }
}

/* MAIN CARD */
.card {
    width: 500px;
    max-width: calc(100% - 32px);
    background:
        url("assets/midbg.jpg") top center no-repeat,
        linear-gradient(
            180deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.03)
        );
    padding: 340px 35px 28px 35px;
    padding-top: clamp(245px, 90vw, 335px);
    text-align: center;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 30px 40px rgb(0 0 0 / 23%), 0 6px 20px 12px rgba(0, 0, 0, 0.19);
}

/* Legal page specific card width */
.legal-page .card {
    width: 610px;
}

.card-header{
    margin-bottom: 15px;
	text-align: center;
}

/* HEADER */
.mask {
    width: 60%;
    margin-bottom: 12px;
}

.name {
    width: 95%;
}

.b {
    margin-top: 15px;
}

h1 {
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 2.2rem;
    margin-block-end: 0;
    margin-block-start: 0;
}

h2 {
    font-family: 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
}

h5 {
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
}

/* SEPARATOR */
.separator {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    margin: 0;
    width: 100%;
}

/* ATTENDANCE BUTTONS */
.attendance-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.attendance-btn {
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.3rem;
    background: var(--btn-bg);
    border: 1px solid white;
    border-radius: 6px;
    cursor: pointer;
    color: rgb(255, 255, 255);
    padding: 15px 18px;
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    min-height: 100px;
    width: 180px;
}

.btn-icon {
    display: block;
    margin: 0 auto 8px auto;
    max-width: 40px;
}

.attendance-btn:hover {
    background: var(--btn-bg-active);
}

.attendance-btn.active {
    background: var(--btn-bg-active);
    color: rgb(255, 255, 255);
}

/* CHOICES */
.choice-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 20px;
}

.choice-buttons .choice {
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.3rem;
    background: var(--btn-bg);
    border: 1px solid white;
    border-radius: 6px;
    cursor: pointer;
    color: rgb(255, 255, 255);
    padding: 10px 18px;
    transition: background 0.2s ease;
}

.choice-buttons .choice:hover {
    background: var(--btn-bg-active);
}

.choice-buttons .choice.active {
    background: var(--btn-bg-active);
    color: rgb(255, 255, 255);
}

/* FORM PANEL */
.form-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 16px;
    margin: 24px 0;
    text-align: left;
}

.form-panel p {
    text-align: center;
    margin-top: 0px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    background: rgb(18 6 41 / 49%);
    border: none;
    border-radius: 6px;
    padding: 10px;
    color: white;
    margin-bottom: 10px;
    font-family: 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    outline: none;
}

/* Remove focus border for all inputs */
input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    background: rgba(18, 6, 41, 0.74);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox {
    font-size: 12px;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    margin-bottom: 5px;
}

.form-note {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-style: italic;
}

/* UID ERROR */
#uidError {
    background: rgb(213 31 31 / 22%);
    display: block;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    margin-top: 24px;
    font-size: 12px;
    justify-items: center;
    width: 90%;
    place-self: center;
}

/* CHECKBOX LIST */
.checkbox-list {
    text-align: left;
    font-size: 12px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.checkbox-list label {
    display: inline-block;
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-list label a {
    color: #fff;
    text-decoration: underline;
}

.checkbox-list label a:hover {
    color: #ccc;
}

/* SUBMIT */
.submit {
    background: var(--btn-bg-active);
    padding: 8px 22px;
    font-size: 1.5rem;
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid white;
    border-radius: 6px;
    cursor: pointer;
    color: rgb(255, 255, 255);
    transition: background 0.2s ease;
}

.submit:hover {
    background: #7a6f93;
}

/* EVENT DETAILS */
.event-details {
    background: var(--panel-bg);
    display: block;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    margin-top: 24px;
    margin-bottom: 20px;
    font-size: 12px;
    justify-items: center;
    width: 90%;
    place-self: center;
}

.details {
    display: flex;
    justify-content: center;
    width: 95%;
    font-size: 0.8rem;
}

.details div {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    padding: 0 12px;
}

.details div:first-child {
    padding-left: 0;
}

.details div:last-child {
    padding-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.details div span {
    font-style: italic;
}

.event-details h5 {
    margin-block-start: 0;
    margin-block-end: 10px;
}

/* FOOTER LOGOS */
.logos {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.low-separator {
    width: 90%;
    margin-bottom: 16px;
}

.logos img:not(.low-separator) {
    width: 70%;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    font-family: 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
}

.language-selector select:hover {
    background: rgba(0, 0, 0, 0.7);
}

.language-selector select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* ERROR MESSAGE */
.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-align: left;
    min-height: 20px;
}

.error-message:empty {
    min-height: 0;
    margin: 0;
}

/* CALENDAR BUTTONS */
.calendar-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.calendar-primary-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.calendar-primary-buttons .calendar-btn {
    flex: 1;
    text-align: center;
    max-width: 180px;
}

.calendar-btn {
    display: inline-block;
    text-decoration: none;
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid white;
    background: var(--btn-bg);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.calendar-btn:hover {
    background: var(--btn-bg-active);
}

.calendar-btn.primary {
    background: var(--btn-bg-active);
}

.calendar-btn span::before {
    margin-right: 8px;
    display: inline-block;
}

.calendar-btn.goog span::before {
    content: "📅";
}

.calendar-btn:not(.primary):not(.ics) span::before {
    content: "📆";
}

.calendar-btn.ics span::before {
    content: "⬇️";
}

/* H3 with background decoration */
h3 {
    background: url(assets/h3container.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 3px;
    font-size: 1.09rem;
}

/* INTRO SECTION */
.intro {
    margin-bottom: 20px;
}

.intro h2 {
    font-family: 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
}

.intro p,
.culinary p {
    font-size: 14px;
    color: var(--text-muted);
}

.intro p {
    font-style: italic;
    margin-block-end: 0;
}

.intro h4 {
    font-family: 'Netflix Sans App', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-block-start: 0;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .card {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .attendance-btn {
        min-width: 140px;
        min-height: 80px;
        font-size: 1.1rem;
        padding: 12px 14px;
    }
    
    .btn-icon {
        width: 30px;
        height: auto;
    }
    
    .details {
        flex-direction: column;
        gap: 10px;
    }

    .details div {
    align-items: center;
    }
    
    .details div:last-child {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        padding-top: 10px;
        padding-left: 0;
    }
    
    .calendar-primary-buttons {
        flex-direction: column;
    }
    
    .calendar-primary-buttons .calendar-btn {
        max-width: 100%;
    }
}

.hidden {
    display: none !important;
}

.error {
    color: #e50914;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success {
    color: #46d369;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Status badge styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
}

.status-badge.confirmed {
    background: rgb(71 41 67);
    border: 1px solid #bfbfbf;
    color: #ffffff;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.status-badge.cancelled {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid #e50914;
    color: #e50914;
}

.status-badge .icon {
    font-size: 1rem;
}

/* +1 Status Section */
#plusOneStatusSection {
    margin-top: 20px;
}

.plus-one-status {
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.plus-one-status h4 {
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.plus-one-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.plus-one-info .name {
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 2rem;
}

.plus-one-info .email {
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Loading animation for confirm button */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8b80a3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 30px 40px rgb(0 0 0 / 50%);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    background: none;
    padding: 0;
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid white;
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
    background: var(--btn-bg);
    color: white;
}

.modal-btn.cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.modal-btn.keep {
    background: var(--btn-bg-active);
    border: 1px solid white;
}

.modal-btn.keep:hover {
    background: #7a6f93;
    color: #ffffff;
}

/* Cancel button styles */
.btn-cancel {
    background: transparent;
    color: #e50914;
    border: 1px solid #e50914;
    margin-top: 15px;
}

.btn-cancel:hover {
    background: rgba(229, 9, 20, 0.1);
}

/* Form section hidden by default */
.form-section {
    display: none;
}

.form-section.visible {
    display: block;
}

/* Cancellation notice */
.cancellation-notice {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-top: 20px;
}

.cancellation-notice h3 {
    color: #e50914;
    margin-bottom: 10px;
}

.cancellation-notice p {
    color: #b3b3b3;
    margin-bottom: 0;
}

/* One Person Only Message Box */
.one-person-only-box {
    background: rgba(70, 130, 180, 0.2);
    border: 1px solid rgba(70, 130, 180, 0.5);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    text-align: center;
}

.one-person-only-box p {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 500;
    font-family: 'Netflix Sans App UCd', 'Netflix Sans App', 'Helvetica Neue', Arial, sans-serif;
}

/* Document Modal Styles */
.document-modal {
    max-width: 700px;
    width: 98%;
    max-height: 90vh;
    padding: 15px;
}

.document-modal h3 {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.document-content {
    max-height: 75vh;
    overflow-y: auto;
    text-align: left;
    padding: 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
}

.document-content h4 {
    margin: 10px 0 4px 0;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.document-content h4:first-child {
    margin-top: 0;
}

.document-content p {
    margin-bottom: 6px;
    font-size: 0.75rem;
    margin-block-start: 0;
}

.modal-buttons {
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    font-size: 1.1rem;
}

/* Scrollbar styling for document content */
.document-content::-webkit-scrollbar {
    width: 8px;
}

.document-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.document-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* FAQ Button Styles */
.faq-button-container {
    text-align: center;
    margin-top: 25px;
    padding: 0 20px;
}

.faq-button {
    display: inline-block;
    font-size: 1.1rem;
    background: #2d194b;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 8px;
    color: #ffffff;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.faq-button:hover {
    background: #2d194b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.faq-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(184, 29, 36, 0.3);
}
