@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

pre {
    white-space: pre-wrap; /* Since CSS 2.1 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

h1:focus-visible {
    outline: 2px solid #134395;
    outline-offset: 2px;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: #134395;
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }



.parent {
    position: relative;
    display: flex;
    justify-content: center;
}

.image1 {
    position: relative;
    top: 0;
    left: 0;
}

.image2 {
    position: absolute;
    /*top: 0px;*/
    /*left: 0px;*/
}

/* ============================================
   Form Detail Page Styles - Modern & Mobile-Friendly
   ============================================ */

/* Page Header */
.form-page-header {
    background: linear-gradient(135deg, #134395 0%, #1e5bb5 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(19, 67, 149, 0.2);
}

.form-page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
}

.form-page-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.form-page-header .department-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    min-height: 300px;
}

.loading-container p {
    color: #64748b;
    margin-top: 1rem;
}

/* Error / Status Containers */
.error-container {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #dc2626;
    max-width: 600px;
    margin: 0 auto;
}

.error-container .bi {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.error-container p {
    margin: 0;
    font-size: 1rem;
}

.warning-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.warning-banner .bi {
    font-size: 1.25rem;
}

.warning-banner p {
    margin: 0;
    font-weight: 500;
}

/* Success Container */
.success-container {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.success-container .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.success-container .success-icon .bi {
    font-size: 2.5rem;
    color: white;
}

.success-container h1 {
    color: #134395;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.success-container .success-message {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-container .zoom-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.success-container .zoom-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Too Many Requests */
.rate-limit-container {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.rate-limit-container .rate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.rate-limit-container .rate-icon .bi {
    font-size: 2.5rem;
    color: white;
}

.rate-limit-container h3 {
    color: #134395;
    margin-bottom: 1rem;
}

.rate-limit-container p {
    color: #64748b;
    line-height: 1.6;
}

/* Form Card */
.form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.form-card-header {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-card-header h1 {
    color: #134395;
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.form-card-header .department-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.form-card-header .description {
    color: #64748b;
    line-height: 1.6;
    white-space: pre-line;
    margin: 0;
}

.form-card-body {
    padding: 2rem;
}

/* Required Fields Notice */
.required-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.required-notice .bi {
    color: #dc2626;
}

/* Validation Errors */
.validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.validation-summary .validation-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.validation-summary .validation-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #dc2626;
    font-size: 0.9rem;
}

.validation-summary .validation-list li {
    margin-bottom: 0.25rem;
}

/* Status Messages (Not Yet Available, Expired, No Appointments) */
.status-message {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.status-message h4 {
    color: #134395;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-message p {
    color: #64748b;
    margin: 0;
}

/* Appointment Date Selection */
.appointment-selection {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.appointment-selection h4 {
    color: #134395;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appointment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appointment-option:hover {
    border-color: #134395;
    background: #fafbff;
}

.appointment-option.selected {
    border-color: #134395;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
}

.appointment-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #134395;
}

.appointment-option label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
}

.appointment-error {
    color: #dc2626;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title .bi {
    color: #134395;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: 1.25rem;
}

.form-group-modern label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group-modern label.required::after {
    content: " *";
    color: #dc2626;
}

.form-group-modern .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-group-modern .form-control:focus {
    outline: none;
    border-color: #134395;
    box-shadow: 0 0 0 3px rgba(19, 67, 149, 0.15);
}

.form-group-modern .form-control::placeholder {
    color: #94a3b8;
}

.form-group-modern textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-group-modern .field-error {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* Checkbox Modern */
.checkbox-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-modern:hover {
    border-color: #134395;
    background: #fafbff;
}

.checkbox-modern.has-error {
    border-color: #fecaca;
    background: #fef2f2;
}

.checkbox-modern input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    accent-color: #134395;
    flex-shrink: 0;
}

.checkbox-modern .checkbox-label {
    flex: 1;
    color: #374151;
    line-height: 1.5;
}

.checkbox-modern .checkbox-label a {
    color: #134395;
    text-decoration: underline;
}

/* Radio Button Group */
.radio-group-modern {
    margin-bottom: 1.25rem;
}

.radio-group-modern .radio-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #134395;
}

.radio-option.selected {
    border-color: #134395;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
}

.radio-option input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: #134395;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    color: #374151;
}

/* Dropdown Modern */
.dropdown-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem !important;
}

/* File Upload Modern */
.file-upload-modern {
    margin-bottom: 1.25rem;
}

.file-upload-modern label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.file-upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload-zone:hover {
    border-color: #134395;
    background: #fafbff;
}

.file-upload-zone .bi {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.file-upload-zone p {
    margin: 0 0 0.5rem;
    color: #64748b;
}

.file-upload-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.file-upload-hints span {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Image in Form */
.form-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Text Content Blocks */
.text-block {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    white-space: pre-wrap;
}

.info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.info-card h3 {
    color: #0369a1;
    font-size: 1rem;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card .info-content {
    color: #0c4a6e;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Link Button in Form */
.form-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #134395;
    color: #134395;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
}

.form-link-button:hover {
    background: #134395;
    color: white;
}

/* Headings in Form */
.form-heading {
    color: #134395;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.form-heading.h1 { font-size: 1.75rem; }
.form-heading.h2 { font-size: 1.5rem; }
.form-heading.h3 { font-size: 1.25rem; }
.form-heading.h4 { font-size: 1.125rem; }
.form-heading.h5 { font-size: 1rem; }
.form-heading.h6 { font-size: 0.9375rem; }

/* Divider */
.form-divider {
    border: none;
    border-top: 2px solid #f1f5f9;
    margin: 1.5rem 0;
}

/* ModCom Section */
.modcom-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.modcom-section h3 {
    color: #134395;
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.modcom-section .modcom-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Submit Button Area */
.submit-section {
    border-top: 2px solid #f1f5f9;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    width: 100%;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit .spinner-border {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-page-header {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .form-page-header h1 {
        font-size: 1.5rem;
    }

    .form-card {
        border-radius: 16px;
        margin: 0 -0.5rem;
    }

    .form-card-header,
    .form-card-body {
        padding: 1.25rem;
    }

    .form-card-header h1 {
        font-size: 1.5rem;
    }

    .success-container,
    .rate-limit-container {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .success-container h1 {
        font-size: 1.5rem;
    }

    .radio-options {
        flex-direction: column;
    }

    .radio-option {
        width: 100%;
    }

    .file-upload-hints {
        flex-direction: column;
        align-items: center;
    }

    .btn-submit {
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        margin: 0 -1rem;
        border-radius: 12px;
    }

    .form-card-header,
    .form-card-body {
        padding: 1rem;
    }

    .checkbox-modern {
        padding: 0.875rem;
    }

    .appointment-option {
        padding: 0.875rem;
    }
}

/* ============================================
   Form List Page Styles
   ============================================ */

.form-list-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

.form-list-header {
    background: linear-gradient(135deg, #134395 0%, #1e5bb5 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(19, 67, 149, 0.2);
    text-align: center;
}

.form-list-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-list-subtitle {
    opacity: 0.9;
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
}

/* View Toggle */
.form-list-view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.form-list-view-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.form-list-view-label.active {
    color: #134395;
    font-weight: 600;
}

.form-list-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
    margin: 0;
}

.form-list-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-list-toggle-slider {
    position: absolute;
    inset: 0;
    background: #134395;
    border-radius: 9999px;
    transition: background 0.2s ease;
}

.form-list-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.form-list-toggle-switch input:checked + .form-list-toggle-slider {
    background: #1e5bb5;
}

.form-list-toggle-switch input:checked + .form-list-toggle-slider::before {
    transform: translateX(20px);
}

/* Search */
.form-list-search {
    margin-bottom: 1.5rem;
}

.form-list-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.form-list-search-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.form-list-search-input {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 2.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.2s ease;
}

.form-list-search-input:focus {
    outline: none;
    border-color: #134395;
    box-shadow: 0 0 0 3px rgba(19, 67, 149, 0.15);
}

.form-list-search-input::placeholder {
    color: #94a3b8;
}

.form-list-search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.form-list-search-clear:hover {
    color: #334155;
    background: #f1f5f9;
}

/* Empty state */
.form-list-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-list-empty .bi {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

.form-list-empty h3 {
    color: #334155;
    margin: 0 0 0.5rem;
}

.form-list-empty p {
    color: #64748b;
    margin: 0;
}

/* Department groups */
.form-list-department {
    margin-bottom: 2rem;
}

.form-list-department-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-list-department-header .bi {
    color: #134395;
    font-size: 1.25rem;
}

.form-list-department-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.form-list-department-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    background: #f0f4ff;
    color: #134395;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

/* Card grid */
.form-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Form card */
.form-list-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.25rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(19, 67, 149, 0.12);
    border-color: #134395;
    color: inherit;
    text-decoration: none;
}

.form-list-card--preview {
    border-style: dashed;
    border-color: #f59e0b;
    background: #fffbeb;
}

.form-list-card--preview:hover {
    border-color: #d97706;
}

.form-list-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-list-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 14px;
    margin-bottom: 1rem;
}

.form-list-card-icon .bi {
    font-size: 1.5rem;
    color: #134395;
}

.form-list-card-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.form-list-card-teaser {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.form-list-card-action {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #134395;
    transition: gap 0.2s ease;
}

.form-list-card:hover .form-list-card-action {
    gap: 0.625rem;
}

/* Form List – responsive */
@media (max-width: 768px) {
    .form-list-page {
        padding: 0.75rem;
    }

    .form-list-header {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .form-list-header h1 {
        font-size: 1.4rem;
    }

    .form-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .form-list-header {
        padding: 1.25rem 1rem;
    }

    .form-list-header h1 {
        font-size: 1.25rem;
    }

    .form-list-subtitle {
        font-size: 0.925rem;
    }

    .form-list-search-input {
        padding: 0.75rem 2.5rem;
        font-size: 0.9375rem;
    }

    .form-list-card {
        padding: 1.25rem 1rem 1rem;
        border-radius: 12px;
    }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */

/* Focus-visible ring for interactive elements */
.form-list-card:focus-visible,
.checkbox-modern:focus-visible,
.radio-option:focus-visible,
.appointment-option:focus-visible,
.file-upload-zone:focus-visible,
.form-link-button:focus-visible,
.zoom-link:focus-visible,
.btn-submit:focus-visible,
.form-list-search-clear:focus-visible,
.form-list-toggle-switch input:focus-visible + .form-list-toggle-slider {
    outline: 2px solid #134395;
    outline-offset: 2px;
}

/* Ensure inputs have visible focus ring */
.form-control:focus-visible,
.dropdown-modern:focus-visible,
select:focus-visible {
    outline: 2px solid #134395;
    outline-offset: 1px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .form-list-card:hover,
    .btn-submit:hover:not(:disabled),
    .success-container .zoom-link:hover {
        transform: none;
    }

    .spinner-border {
        animation-duration: 1.5s !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .form-list-card {
        border-width: 2px;
        border-color: #000;
    }

    .form-group-modern .form-control {
        border-color: #000;
    }

    .checkbox-modern,
    .radio-option,
    .appointment-option {
        border-width: 2px;
        border-color: #000;
    }

    .warning-banner {
        border: 2px solid #000;
    }

    .form-list-card-action,
    .form-link-button,
    a {
        text-decoration: underline;
    }

    .form-list-card-teaser,
    .loading-container p,
    .form-card-header .description,
    .status-message p,
    .rate-limit-container p,
    .modcom-section .modcom-description {
        color: #000;
    }

    .form-list-search-input::placeholder,
    .form-group-modern .form-control::placeholder {
        color: #595959;
    }
}


/* ===========================
   Home / Start Page
   =========================== */

.home-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.home-hero {
    padding: 3rem 0 2.5rem;
}

.home-hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.home-hero-content {
    flex: 1 1 55%;
    min-width: 0;
}

.home-hero-logo-row {
    margin-bottom: 1.5rem;
}

.home-hero-logo {
    height: 64px;
    width: auto;
}

.home-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.home-hero-highlight {
    color: #134395;
}

.home-hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.home-hero-description {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 520px;
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #134395 0%, #1e5bb5 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(19, 67, 149, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(19, 67, 149, 0.4);
    color: #fff;
}

.home-hero-cta:focus-visible {
    outline: 3px solid #134395;
    outline-offset: 3px;
}

.home-hero-illustration {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-illustration img {
    width: 200px;
    height: auto;
    opacity: 0.85;
}

/* Feature Cards */
.home-features {
    padding: 2rem 0 2.5rem;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-feature-card:hover {
    box-shadow: 0 8px 24px rgba(19, 67, 149, 0.08);
    transform: translateY(-2px);
}

.home-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    color: #134395;
}

.home-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.home-feature-text {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* Steps Section */
.home-steps {
    padding: 2rem 0 2.5rem;
}

.home-steps-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-steps-title .bi {
    color: #134395;
}

.home-steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.home-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #134395 0%, #1e5bb5 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
}

.home-step-content p {
    font-size: 0.925rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.home-step-content a {
    color: #134395;
    font-weight: 600;
}

/* Footer */
.home-footer {
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.home-footer p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .home-hero-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .home-hero-description {
        max-width: none;
    }

    .home-hero-illustration {
        order: -1;
        flex: none;
    }

    .home-hero-illustration img {
        width: 150px;
    }

    .home-hero-title {
        font-size: 1.75rem;
    }

    .home-features-grid {
        grid-template-columns: 1fr;
    }

    .home-step {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .home-page {
        padding: 0 1rem;
    }

    .home-hero {
        padding: 2rem 0 1.5rem;
    }

    .home-hero-title {
        font-size: 1.5rem;
    }

    .home-hero-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .home-hero-cta,
    .home-feature-card {
        transition: none;
    }

    .home-hero-cta:hover,
    .home-feature-card:hover {
        transform: none;
    }
}

/* High contrast */
@media (prefers-contrast: more) {
    .home-feature-card {
        border-width: 2px;
        border-color: #000;
    }

    .home-step {
        border-width: 2px;
        border-color: #000;
    }

    .home-hero-cta {
        border: 2px solid #000;
    }

    .home-feature-text,
    .home-step-content p,
    .home-hero-description,
    .home-hero-subtitle {
        color: #000;
    }
}
