@font-face {
    font-family: 'Univers';
    src: url('fonts/UniversLTStd.otf') format('opentype');
}

@font-face {
    font-family: 'UniversBold';
    src: url('fonts/UniversLTStd-Bold.otf') format('opentype');
}

/* Banner Styles */
.banner {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner img {
    width: auto;
    max-width: 1200px;
    height: auto;
    max-height: 240px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    content: url('images/helpbanner.png');
}

/* Banner Responsiveness */
@media (max-width: 1200px) {
    .banner {
        max-width: 1000px;
        margin: 20px auto;
    }
    
    .banner img {
        max-width: 800px;
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .banner {
        display: none;
    }
}

/* Global Styles */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: white;
}

/* Header & Footer Styles */
header,
footer {
    width: 100%;
    box-sizing: border-box;
}

header {
    background-color: #f8f9fa;
    color: black;
    padding: 0.5em 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
}

.content-wrapper {
    flex: 1;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.helpdesk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-sizing: border-box;
    width: 100%;
    min-height: calc(100vh - 110px); /* Account for header (60px) and footer (50px) */
}

.helpdesk-main .content-wrapper {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Form Spacing Adjustments */
.helpdesk-main .content-wrapper {
    padding: 0.5rem;
}

.helpdesk-main .form-group {
    margin-bottom: 1rem;
}

.form-title {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
}

.helpdesk-main textarea {
    min-height: 50px;
    resize: vertical;
}

.helpdesk-main .help-text {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

.helpdesk-main input,
.helpdesk-main select,
.helpdesk-main textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #000;
    border-radius: 6px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

/* Specific styles for email and subject inputs */
.helpdesk-main input[type="email"],
.helpdesk-main input[type="text"] {
    padding: 0.375rem 0.75rem;
}

.helpdesk-main input:focus,
.helpdesk-main select:focus,
.helpdesk-main textarea:focus {
    outline: none;
    border-color: #1187d9;
    box-shadow: 0 0 0 2px rgba(17, 135, 217, 0.1);
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: auto;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Company Info Styles */
.company-info {
    display: flex;
    align-items: center;
    height: 40px;
}

.company-logo {
    height: 100%;
    width: auto;
    margin-right: 0.5rem;
}

.company-name {
    font-size: 1.25rem;
    color: #000;
    line-height: 40px;
    font-weight: bold;
}

.company-info a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
}

.company-info a:hover .company-name {
    text-decoration: underline;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f05643 !important;
    border-color: #f05643 !important;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-button:hover {
    background-color: #d94c3b !important;
    border-color: #d94c3b !important;
}

.menu-button:active {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

/* Menu Dropdown Styles */
.menu-dropdown {
    display: none;
    position: absolute;
    top: 70px;
    right: 1em;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 1000;
    min-width: 250px;
    transform-origin: top right;
    animation: menuSlideIn 0.2s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.menu-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section h3 {
    font-family: 'UniversBold', Arial, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-section a {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-section a:hover {
    background-color: #f8f9fa;
    color: #1187d9;
}

.menu-section a.highlight {
    color: #f05643;
    font-weight: bold;
}

.menu-section a.highlight:hover {
    color: #d94c3b;
    background-color: #fff1f0;
}

/* Remove old nav-menu styles */
/* Removed old nav-menu reset styles */

.bold-text {
    font-weight: bold;
}

/* Footer Styles */
footer {
    background-color: #292929;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.footer-left,
.footer-right {
    flex: 1;
    font-size: small;
    font-weight: bold;
}

.footer-left {
    text-align: left;
    display: flex;
    flex-direction: row;
    gap: 0.3em;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 1em;
}

.footer-button {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.footer-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.2s ease;
}

.footer-button:hover::after {
    width: 100%;
}

/* Media queries for footer responsiveness */
@media (max-width: 768px) {
    footer {
        padding: 0.25rem 0.5rem;
    }

    .footer-left,
    .footer-right {
        font-size: 0.6rem;
        letter-spacing: -0.02em;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2em;
        line-height: 1.1;
    }

    .footer-right {
        flex-direction: column;
        gap: 0.3em;
        align-items: flex-end;
    }

    .footer-button {
        font-size: 0.6rem;
    }

    .footer-center img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 0.2rem 0.4rem;
    }

    .footer-left,
    .footer-right {
        font-size: 0.5rem;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .footer-left {
        gap: 0.15em;
    }

    .footer-right {
        gap: 0.2em;
    }

    .footer-button {
        font-size: 0.5rem;
        letter-spacing: -0.02em;
    }

    .footer-center img {
        height: 25px;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: calc(100vh - 160px); /* Subtract header + footer height */
    box-sizing: border-box;
    width: 100%;
}

.footer-center img {
    width: auto;
    height: 40px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: calc(100vh - 160px); /* Subtract header + footer height */
    box-sizing: border-box;
    width: 100%;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    padding: 0 1.5rem;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* Optimized Button Styles */
.button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    width: 30%;
    min-width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    will-change: transform;
    transform: translateZ(0);
}

.button img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: brightness(1.02) contrast(1.02);
}

.button:hover {
    transform: scale(1.02);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e0e0e0;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.button:hover img {
    opacity: 0;
    transform: scale(1.1);
}

.button span {
    margin-top: 0.5em;
    font-size: 1.2em;
}

.button:nth-child(1):hover {
    background-image: url('images/mainit2.png');
}

.button:nth-child(2):hover {
    background-image: url('images/LPticket2.png');
}

.button:nth-child(3):hover {
    background-image: url('images/SFticket2.png');
}

#signInButton {
    padding: 10px 20px;
    background-color: #1187d9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    max-width: 200px;
}

#signInButton:hover {
    background-color: #005a9e;
}

body.signin-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f3f2f1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#content {
    text-align: center;
    background-color: white;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#content .company-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

#content .company-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1187d9;
}

/* Remove contact menu styles */

.page-title {
    text-align: center;
    margin: 0.5rem 0;
    font-size: 1.75em;
    font-weight: bold;
}

.user-info {
    display: none;
}

.flex-center {
    display: flex;
    align-items: center;
}

.techgusty-logo {
    margin-right: 10px;
    width: 560px;
    height: 589px;
}

#main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width {
    width: 100%;
}

.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.content-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    width: 100%;
    margin: 1rem auto;
    padding: 2rem;
    background-color: white;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1187d9;
    box-shadow: 0 0 0 2px rgba(17, 135, 217, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Form Field Width Consistency */
.form-group {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #000;
    border-radius: 6px;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 42px; /* Consistent height for all inputs */
}

.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-group input[type="date"] {
    height: 42px;
    padding-right: 2rem; /* Space for calendar icon */
}

/* Style select dropdowns consistently */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Consistent focus states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1187d9;
    box-shadow: 0 0 0 2px rgba(17, 135, 217, 0.1);
}

/* Radio and checkbox inputs should not have full width */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
}

/* Style the radio and checkbox groups */
.radio-group,
.checkbox-group {
    margin-top: 0.5rem;
    width: 100%;
}

/* Ensure other input in checkbox group aligns properly */
.checkbox-label.checkbox-other input[type="text"] {
    height: 36px; /* Slightly smaller for better visual alignment */
    padding: 0.5rem 0.75rem;
}

.file-upload-container {
    border: 2px dashed #ccc;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #fff;
    margin-top: 0.5rem;
    width: 100%;
}

.file-upload-container.dragover {
    border-color: #1187d9;
    background-color: #f8f9fa;
}

.file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    cursor: pointer;
    text-align: center;
    min-height: 50px;
}

.upload-text {
    color: #000000;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.file-dropzone:hover .upload-text {
    color: #000000;
    font-weight: bold;
    text-decoration: underline;
}

#fileInput {
    display: none;
}

/* File list styles */
.file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.file-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-text {
    font-size: 0.875rem;
    color: #212529;
}

.file-icon {
    color: #6c757d;
    width: 1rem;
    text-align: center;
}

.delete-button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.delete-button:hover {
    background-color: #ffecef;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Submit Button */
.submit-button {
    background-color: #e1513f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    width: 100%;
}

.submit-button:hover {
    background-color: #cb4737;
    transform: translateY(-1px);
}

.submit-button:active {
    background-color: #0b5a9e;
    transform: translateY(0);
}

/* Button Styles */
.custom-button {
    background-color: #f05643 !important;
    border-color: #f05643 !important;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.custom-button:hover,
.custom-button:focus {
    background-color: #d94c3b !important;
    border-color: #d94c3b !important;
}

.button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.65;
}

.button-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    padding: 1rem;
    margin-bottom: 0.5rem;
    min-width: 250px;
    max-width: 350px;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.5s, fadeOut 0.5s 8s forwards;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toast.success {
    background-color: #2ecc71;
}

.toast.error {
    background-color: #f05643;
}

.toast .close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Content Wrapper */
.content-wrapper {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.helpdesk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 110px); /* Adjusting for header (60px) + footer (50px) */
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.form-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
    font-size: 0.875rem;
}

.form-group .help-text {
    font-size: 0.75rem;
    color: #000;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.error-message {
    color: #f05643;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

/* Required Field Indicator */
.required {
    color: #f05643;
    margin-right: 0.25rem;
}

/* Copyright */
.copyright {
    flex: 1;
    text-align: left;
}

/* Media Queries for Button Container */
@media (max-width: 1200px) {
    .button-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .button {
        padding: 1.25rem;
    }
}

@media (max-width: 992px) {
    .button-container {
        flex-wrap: wrap;
    }
    
    .button {
        width: 45%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
        min-height: calc(100vh - 120px);
    }

    .button-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .button {
        flex: 0 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    main {
        padding: 0.5rem;
    }

    .button-container {
        gap: 0.75rem;
        padding: 0 0.25rem;
    }

    .button {
        flex: 0 1 100%;
        max-width: 300px;
    }
}

/* Responsive adjustments for helpdesk page */
@media (max-width: 768px) {
    .helpdesk-main {
        padding: 0.5rem;
        min-height: calc(100vh - 90px);
    }
    
    .helpdesk-main .content-wrapper {
        padding: 0;
    }
    
    .form-container {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 0.25rem;
        max-width: 100%;
    }
    
    .helpdesk-main .form-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .helpdesk-main .form-group {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .helpdesk-main {
        padding: 0;
        height: calc(100vh - 80px);
    }
    
    .helpdesk-main .slds-container_medium {
        padding: 0.5rem;
        box-shadow: none;
        border-radius: 0;
        max-height: calc(100vh - 90px);
    }
    
    .helpdesk-main .slds-form-element {
        margin-bottom: 0.375rem;
    }
    
    .helpdesk-main .slds-text-heading_large {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
}

/* Management Table Styles */
.content-wrapper table {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.content-wrapper table th,
.content-wrapper table td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

.content-wrapper table th {
    background-color: #f2f2f2;
}

.content-wrapper table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.content-wrapper table tr:hover {
    background-color: #e0e0e0;
}

.content-wrapper table a {
    color: #007bff;
    text-decoration: none;
}

.content-wrapper table a:hover {
    text-decoration: underline;
}

/* Help Desk Form Styles */
.submit-button.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.submit-button.is-loading::after {
  content: '';
  position: absolute;
  width: 1em;
  height: 1em;
  top: 50%;
  left: 50%;
  margin-left: -0.5em;
  margin-top: -0.5em;
  border: 2px solid #fff;
  border-radius: 50%;
  border-right-color: transparent;
  border-top-color: transparent;
  animation: spinAround 500ms infinite linear;
}

.file-list {
  margin-top: 10px;
  width: 100%;
}

.file-item {
  padding: 8px 16px;
  margin: 4px 0;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.file-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.file-text-container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: 0;
  justify-content: flex-start;
}

.file-text {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  color: #666;
  font-size: 0.875em;
  white-space: nowrap;
}

.file-actions {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: -8px;
}

.delete-button {
  background-color: #e1513f;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.875em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-button:hover {
  background-color: #cb4737;
  transform: translateY(-1px);
}

.delete-button:active {
  background-color: #b33e30;
  transform: translateY(0);
}

.file-dropzone {
  position: relative;
  min-height: 100px;
}

.file-list:not(:empty) + .upload-text {
  display: none;
}

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

/* 404 Error Page Styles */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f3f2f1;
}

.error-page img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

/* Radio and Checkbox Styles */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-label.checkbox-other {
    align-items: center;
}

.checkbox-label.checkbox-other input[type="text"] {
    width: auto;
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.375rem 0.75rem;
}

/* Make the entire start date input field clickable */
.form-group input[type="date"] {
    position: relative;
    cursor: pointer;
    /* Ensure the input stays on top of any pseudo-elements */
    z-index: 1;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Scroll indicator styles */
@keyframes scrollIndicator {
    0% { transform: translate(-50%, 0); opacity: 0.6; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 0); opacity: 0.6; }
}

@media (max-width: 375px) {
    main.has-scroll::after,
    body.error-page.has-scroll::after {
        content: '⌄';
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translate(-50%, 0);
        font-size: 2rem;
        color: #f05643;
        animation: bounce 1s infinite;
        z-index: 1000;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    main.scrolled-down::after,
    body.error-page.scrolled-down::after {
        opacity: 0;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translate(-50%, 0);
        }
        40% {
            transform: translate(-50%, -10px);
        }
        60% {
            transform: translate(-50%, -5px);
        }
    }
}