/* ---- Modal ---- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    width: 480px;
    max-width: 95vw;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
}

.modal-close:hover { opacity: 1; }

.modal-body {
    padding: 20px 24px;
}

.modal-workshop-name {
    font-size: 13px;
    font-weight: 600;
    color: #1565c0;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-contact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modal-contact-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.modal-contact-table tr:last-child td { border-bottom: none; }

.modal-contact-table a {
    color: #1565c0;
    text-decoration: none;
}

.modal-contact-table a:hover { text-decoration: underline; }

.modal-no-contacts {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.modal-footer {
    padding: 12px 24px 20px;
    text-align: right;
}

html, body {
    margin: 0;
    padding: 0;
    background: #f0f4f8;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a2e;
}

/* ---- Header ---- */
.form-header {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    padding: 16px 0;
    box-shadow: 0 3px 12px rgba(21,101,192,0.3);
    overflow: hidden;
}

.header-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    height: 52px !important;
    width: auto !important;
    max-height: 52px !important;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.header-title {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.header-subtitle {
    margin: 3px 0 0;
    color: #90caf9;
    font-size: 13px;
}

/* ---- Form container ---- */
.form-container {
    max-width: 760px;
    margin: 32px auto;
    padding: 0 16px 40px;
}

/* ---- Card ---- */
.form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 28px 32px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1565c0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e3f2fd;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Form layout ---- */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.required { color: #e53935; }

/* ---- Inputs ---- */
.form-control {
    border: 1.5px solid #dde3ec;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fafbfd;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.form-control:hover {
    border-color: #90b8e8;
    background: #fff;
}

.form-control:focus {
    border-color: #1565c0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

/* ---- No-room alert ---- */
.no-room-alert {
    background: #fff8e1;
    border: 1.5px solid #f9a825;
    border-radius: 8px;
    padding: 16px 20px;
}

.no-room-title {
    font-size: 15px;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 6px;
}

.no-room-body {
    font-size: 14px;
    color: #5d4037;
    margin: 4px 0 8px;
}

.contact-list {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 14px;
    color: #333;
    line-height: 2;
}

.contact-list a {
    color: #1565c0;
    text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; }

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231565c0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

input[type="date"].form-control {
    cursor: pointer;
}

.validation-msg {
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
}

/* ---- Fixed display rows ---- */
.fixed-value-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0f4f8;
    border-radius: 8px;
    border: 1.5px solid #dde3ec;
    font-size: 15px;
    color: #444;
}

.fixed-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1565c0;
    flex-shrink: 0;
}

/* ---- Record Event checkbox ---- */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 1.5px solid #c8e6c9;
    cursor: pointer;
}

.form-check-input {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #2e7d32;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    cursor: pointer;
    margin: 0;
}

/* ---- Event time banner ---- */
.event-time-banner {
    background: #e8f5e9;
    border: 1.5px solid #c8e6c9;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    margin-top: -4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* ---- Alerts ---- */
.alert-error {
    background: #ffebee;
    border: 1.5px solid #ffcdd2;
    border-radius: 8px;
    padding: 14px 18px;
    color: #c62828;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-warning {
    background: #fff8e1;
    border: 1.5px solid #ffe082;
    border-radius: 8px;
    padding: 12px 16px;
    color: #6d4c00;
    font-size: 14px;
}

.loading-text, .no-events {
    font-size: 14px;
    color: #888;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fafbfd;
    border: 1.5px dashed #dde3ec;
    border-radius: 8px;
}

/* ---- Spinner ---- */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #1565c0;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

.spinner-white {
    border-color: rgba(255,255,255,0.5);
    border-top-color: transparent;
}

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

/* ---- Field hint ---- */
.field-hint {
    font-size: 13px;
    color: #999;
    padding: 10px 14px;
    font-style: italic;
    background: #fafbfd;
    border: 1.5px dashed #dde3ec;
    border-radius: 8px;
}

/* ---- Form actions ---- */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel {
    background: transparent;
    color: #888;
    border: 1.5px solid #dde3ec;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.btn-cancel:hover {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.btn-submit {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(46,125,50,0.3);
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    box-shadow: 0 4px 14px rgba(46,125,50,0.4);
    transform: translateY(-1px);
}

.btn-submit:disabled { background: #b0bec5; box-shadow: none; cursor: not-allowed; }

/* ---- Success card ---- */
.success-card {
    text-align: center;
    padding: 48px 24px 32px;
}

.success-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    border-radius: 50%;
    font-size: 34px;
    line-height: 68px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(46,125,50,0.3);
}

.success-card h2 {
    font-size: 24px;
    margin: 0 0 6px;
    color: #2e7d32;
    font-weight: 700;
}

.success-card p { color: #666; font-size: 15px; margin: 6px 0; }

.success-id { font-size: 14px; color: #999; }

.zoom-link-box {
    background: #e3f2fd;
    border: 1.5px solid #90caf9;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 20px auto;
    max-width: 520px;
    text-align: left;
}

.zoom-link-box.zoom-link-pending {
    background: #ffebee;
    border-color: #ffcdd2;
}

.zoom-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.zoom-link {
    color: #1565c0;
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    text-decoration: none;
}

.zoom-link:hover { text-decoration: underline; }

.zoom-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #666;
}

.success-details {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 4px 20px;
    margin: 20px auto;
    max-width: 480px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    gap: 16px;
}

.detail-row:last-child { border-bottom: none; }
.detail-row span { color: #999; }
.detail-row strong { color: #1a1a2e; text-align: right; }

.success-note {
    font-size: 13px;
    color: #888;
    margin-top: 20px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
}

.btn-new-request {
    margin-top: 24px;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(21,101,192,0.3);
    transition: all 0.18s;
}

.btn-new-request:hover {
    box-shadow: 0 4px 14px rgba(21,101,192,0.4);
    transform: translateY(-1px);
}

.time-arrow { color: #999; }

/* ---- Blazor error UI ---- */
#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .form-card { padding: 20px 18px; }
    .form-row { flex-direction: column; gap: 14px; }
    .header-content { padding: 0 16px; }
    .header-title { font-size: 17px; }
    .form-container { margin: 16px auto; padding: 0 10px 32px; }
}
