@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    background: #f4f4f4;
}

.view {
    display: none;
    &.active {
        display: block;
    }
}

/* Government Form Styling */
.gov-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

.gov-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid #003366;
    margin-bottom: 20px;
}

.gov-seal {
    font-size: 48px;
    line-height: 1;
}

.gov-header-text {
    flex: 1;
}

.gov-dept {
    font-size: 11px;
    letter-spacing: 2px;
    color: #666;
    display: block;
    margin-bottom: 2px;
}

.gov-header h1 {
    margin: 0;
    font-size: 22px;
    color: #003366;
    font-weight: normal;
}

.gov-sub {
    font-size: 12px;
    color: #666;
}

.gov-notice {
    background: #fff9e6;
    border: 1px solid #e6d9a6;
    padding: 12px 15px;
    font-size: 12px;
    color: #665c33;
    margin-bottom: 25px;
    line-height: 1.5;
}

.gov-form {
    font-family: Arial, Helvetica, sans-serif;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.form-section h2 {
    font-size: 14px;
    font-weight: bold;
    color: #003366;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.required {
    color: #c00;
}

.form-row input[type="text"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #999;
    background: #fafafa;
}

.form-row input[type="text"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: 2px solid #003366;
    outline-offset: 1px;
    background: white;
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row select {
    cursor: pointer;
}

.form-disclaimer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f5f5f5;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
}

.form-disclaimer input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.form-disclaimer label {
    cursor: pointer;
    color: #444;
}

.form-actions {
    text-align: center;
    margin-bottom: 30px;
}

.gov-btn {
    background: #003366;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gov-btn:hover {
    background: #004488;
}

.gov-btn:active {
    background: #002244;
}

.form-footer {
    text-align: center;
    font-size: 11px;
    color: #888;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.form-footer p {
    margin: 5px 0;
}

/* Confirmation Page */
.confirmation-box {
    text-align: center;
    padding: 40px 20px;
    border: 2px solid #003366;
    margin-bottom: 30px;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    background: #006633;
    color: white;
    font-size: 32px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.confirmation-box h2 {
    color: #003366;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.confirmation-id {
    background: #f0f0f0;
    padding: 10px 20px;
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 20px;
}

.confirmation-box > p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    max-width: 500px;
    margin: 10px auto;
}

.confirmation-details {
    background: #f5f5f5;
    padding: 15px;
    margin: 25px auto;
    max-width: 300px;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.confirmation-details p {
    margin: 8px 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #c00;
    border-left: 4px solid #c00;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px 45px 15px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 400px;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 9999;
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 24px;
    line-height: 1;
}

.toast-content strong {
    display: block;
    color: #c00;
    font-size: 14px;
    margin-bottom: 4px;
}

.toast-content p {
    margin: 0;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: #333;
}

/* Fun Innocence Form Styling */
.fun-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    * {
        font-family: "Google Sans Flex", sans-serif;
    }
}

.fun-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
}

.fun-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.fun-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 28px;
    color: #333;
    margin: 0 0 10px 0;
}

.fun-subtitle {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 30px 0;
}

.fun-form-group {
    text-align: left;
    margin-bottom: 25px;
}

.fun-form-group > label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 15px;
}

.fun-hint {
    color: #888;
    font-size: 13px;
    margin: 0 0 12px 0;
}

/* Multi-select dropdown */
.multi-select {
    position: relative;
}

.multi-select-trigger {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    transition: border-color 0.2s;
}

.multi-select-trigger:hover {
    border-color: #667eea;
}

.multi-select.open .multi-select-trigger {
    border-color: #667eea;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.multi-select-placeholder {
    color: #999;
    font-size: 14px;
}

.multi-select-values {
    font-size: 14px;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-select-arrow {
    color: #999;
    font-size: 12px;
    transition: transform 0.2s;
}

.multi-select.open .multi-select-arrow {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.multi-select.open .multi-select-dropdown {
    display: block;
}

.multi-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}

.multi-option:hover {
    background: #f0f4ff;
}

.multi-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

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

.multi-option.disabled input {
    cursor: not-allowed;
}

.selection-count {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    text-align: right;
}

.selection-count.complete {
    color: #22c55e;
    font-weight: 600;
}

.selection-count.over {
    color: #ef4444;
    font-weight: 600;
}

.fun-btn {
    width: 100%;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fun-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

/* Success state */
.fun-success-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.fun-status-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 25px 0;
    text-align: left;
}

.fun-status-box p {
    margin: 8px 0;
    font-size: 14px;
    color: #166534;
}

.fun-wait-msg {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.confirmation-notice {
    font-style: italic;
    color: #006633;
    font-size: 14px;
    margin-top: 25px;
}

.view.celebration {
    background: #000;
}
#fireVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

.text-top, .text-bottom {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-family: "Google Sans Flex", sans-serif;
    font-size: 7vw;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    z-index: 2;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
}

.text-top {
    top: 5%;
}

.text-bottom {
    bottom: 3%;
}