.formWrapper {
    display: inline-block;
    position: absolute;
    width: 300px;
    padding: 5px;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.signup-page {
    --signup-header-offset: 50px;
    height: calc(100vh - var(--signup-header-offset));
    margin: 0;
    margin-top: var(--signup-header-offset);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 18% 15%, #d4e5ff 0%, #f5f9ff 34%, #ffffff 65%),
        linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.signup-page .signup-layout {
    height: min(760px, 100%);
    width: min(1240px, 100%);
    margin: 0;
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(0, 58%);
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #cfddef;
    box-shadow: 0 24px 58px rgba(20, 43, 74, 0.16);
    background: #ffffff;
    max-height: 600px;
}

.signup-page .formWrapper {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 30px;
    display: block;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 0;
    box-shadow: none;
}

.signup-page .signup-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 100%;
    border-left: 1px solid #d4e1f2;
    background: linear-gradient(145deg, #f4f8ff 0%, #e5eefb 100%);
}

.signup-page .signup-visual-shell {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.signup-page .signup-visual-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(9, 44, 88, 0.12) 0%, rgba(9, 44, 88, 0) 55%);
    z-index: 1;
    pointer-events: none;
}

.signup-page .signup-visual-shell::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 28%;
    background: linear-gradient(180deg, rgba(4, 29, 58, 0) 0%, rgba(4, 29, 58, 0.28) 100%);
    z-index: 1;
    pointer-events: none;
}

.signup-page .signup-visual img {
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 980px) {
    .signup-page {
        --signup-header-offset: 48px;
        height: auto;
        min-height: calc(100vh - var(--signup-header-offset));
        align-items: flex-start;
        padding: 14px;
    }

    .signup-page .signup-layout {
        grid-template-columns: 1fr;
        width: min(760px, 100%);
        height: auto;
        min-height: auto;
        padding: 0;
        max-height: unset;
    }

    .signup-page .formWrapper {
        max-width: none;
        margin: 0;
        padding: 26px 20px;
    }

    .signup-page .signup-visual {
        width: 100%;
        margin: 0;
        min-height: auto;
        border-left: 0;
        border-top: 1px solid #d4e1f2;
    }

    .signup-page .signup-visual img {
        height: auto;
    }
}

@media (max-width: 560px) {
    .signup-page {
        --signup-header-offset: 46px;
        height: auto;
        min-height: calc(100vh - var(--signup-header-offset));
        padding: 10px;
    }

    .signup-page .formWrapper {
        padding: 22px 16px;
    }

    .signup-page .signup-layout {
        border-radius: 16px;
    }

    .signup-page .signup-visual-shell {
        border-radius: 0;
        box-shadow: none;
    }

    .signup-page .signup-visual img {
        max-height: min(44vh, 340px);
        padding: 14px;
    }
}

input {
    padding: 10px;
    margin: 5px 0 5px 0;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    font-family: "DM Sans", sans-serif;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea.smooth-expand {
    height: 40px;
    min-height: 40px;
    max-height: 200px;
    overflow: hidden;
    resize: none;
    padding: 8px;
    width: 100%;
    transition: height 0.3s ease;
    box-sizing: border-box;
}

textarea.smooth-expand:focus {
    height: 120px;
}

form {
    padding-bottom: 10px;
}

.formSubtext {
    color: var(--primary-color-);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 4px;
    font-size: 14px;
    cursor: pointer;
    pointer-events: auto;
}

.remember-me-label input[type="checkbox"] {
    transform: none;
    margin: 0;
    pointer-events: auto;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    border-bottom: 1px solid #9999996b;
    padding-bottom: 30px;
    box-sizing: border-box;
}

.form-section label {
    margin: 0;
}

#admin-request-board-picker {
    overflow: visible;
}

.admin-board-combobox {
    position: relative;
    width: 100%;
}

#admin-request-board-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 25;
    background: #ffffff;
    border: 1px solid #d4d8df;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.10);
    max-height: 360px;
    overflow-y: auto;
    display: none;
}

#admin-request-board-menu.is-open {
    display: block;
}

#admin-request-board-menu button {
    width: 100%;
    border: none;
    background: #ffffff;
    color: #18253f;
    text-align: left;
    padding: 9px 11px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #edf0f4;
}

#admin-request-board-menu button:last-child {
    border-bottom: none;
}

#admin-request-board-menu button:hover,
#admin-request-board-menu button:focus-visible {
    background: #f2f4f7;
    outline: none;
}

#admin-request-board-menu .admin-board-empty {
    padding: 9px 11px;
    color: #5f6b7a;
    font-size: 14px;
    background: #fafafa;
}

input[type="checkbox"] {
    width: auto;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
    transform: scale(1.5);
    cursor: pointer;
}

.form-section input[type="checkbox"] {
    width: auto;
}

.hidden {
    opacity: 0;
}

.checkboxWrapper {
    display: flex;
    margin: 5px 0;
    align-items: center;
}

.checkbox {
    height: 20px;
    margin: 4px 10px 4px 0;
    width: 26px;
}

.checkboxParagraph {
    font-size: 14px;
    pointer-events: auto;
}

.checkboxParagraph a {
    pointer-events: auto;
}

input#due-date {
    width: 150px;
    text-align: center;
}

.formButtonWrapper {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.popupButton {
    width: 125px;
}

.fileUploadWrapper {
    display: flex;
    align-items: center;
}

.no-material {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.no-material input[type="checkbox"] {
    margin-right: 10px;
}

#request-form input#no-material {
    margin-left: 10px;
}

input#file-upload {
    border: none !important;
    padding: 0 !important;
    margin: 5px 0 5px 5px !important;
}

.popupTitle {
    text-align: center;
    margin: 0;
    padding: 20px;
}

form.popupForm {
    padding: 40px;
    padding-top: 0;
    border-radius: 0px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popupForm label {
    margin: 5px 0 5px 0px;
    font-weight: bold;
}

.popupForm input,
.popupForm select {
    margin: 5px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.calendar {
    justify-content: left;
    gap: 15px;
}

.change-due-date-btn {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #0d4f8b;
    background: #eef6ff;
    color: #0d4f8b;
    font-weight: 600;
    cursor: pointer;
}

.change-due-date-btn:hover {
    background: #dceeff;
}

.price-multiplier-info {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #18415f;
}

.price-multiplier-info.is-premium {
    color: var(--warning-text-red-);
    background: #fff1eb;
    border: 1px solid var(--warning-background-red-);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 700;
}

.price-multiplier-info.is-locked {
    opacity: 0.88;
}

#request-form .flatpickr-day.request-date-blocked,
#request-form .flatpickr-day.request-date-blocked:hover,
#request-form .flatpickr-day.request-date-blocked.selected,
#request-form .flatpickr-day.request-date-blocked.selected:hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: rgb(57 57 57 / 39%) !important;
    opacity: 0.55 !important;
}

.calendar,
.no-material {
    margin: 15px 0;
    display: flex;
    align-items: center;

}

input.no-material {
    margin: 25px 5px 5px 5px;
}

#or {
    font-weight: bold;
    margin: 0 20px;
}

#stockDimensionsWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.dimensions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-type-options {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.stock-type-options .stock-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-width: 96px;
    cursor: pointer;
    position: relative;
}

.stock-type-options .stock-type-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    white-space: nowrap;
}

.stock-type-options .stock-type-image {
    width: 56px;
    height: 56px;
    display: block;
    object-fit: contain;
    object-position: center center;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 8px;
    opacity: 0.75;
    margin: 10px;
    transform-origin: center center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


.stock-type-options .stock-type-image:hover {
    opacity: 1;
    background: var(--hover-gray-);
    transition: background-color 150ms ease-in-out;
}

.stock-type-options .stock-type-radio:focus-visible + .stock-type-image {
    border-color: var(--blue-highlight-color-);
    box-shadow: 0 0 0 3px rgba(47, 114, 216, 0.25);
}

.stock-type-options .stock-type-radio:checked + .stock-type-image {
    transform: scale(1.05);
    background: #ffffffc7;
    filter: invert(1);
    opacity: .9;
}

.stock-type-options .stock-type-label {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

#request-form .dimensions input {
    width: 50px;
    text-align: center;
}

#part-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

#stock-file-name {
    width: 300px;
    margin-left: 8px;
}

input.rod-input {
    width: 100px !important;
}

#operations-title {
    font-weight: bold;
}

.operations {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--almost-white-);
    position: relative;
}

.operation-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.operation-column {
    flex: 1;
}

.operation-column label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.operation-column select,
.operation-column input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.operation-notes {
    width: 100%;
    margin-top: 10px;
}

.operation-notes label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#add-operations {
    background: #091e421a;
    color: var(--text-color-);
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#add-operations:hover {
    background: #091e4234;
}

/* Hide the default file input */
input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: normal !important;
    min-width: 100px;
    border: 1px solid gray;
    background-color: var(--almost-white-);
    border-radius: 5px;
    pointer-events: auto;
    text-align: center;
    padding: 10px;
    transition: background-color .3s;
    color: var(--text-color-);
    cursor: pointer;
    margin: 0 5px;
}

.file-upload-btn:hover {
    background-color: #eeeeee;
}

/* Styling the file list */
.file-list-display {
    list-style: none;
    padding: 0;
    margin: 10px;
}

.file-list-display li {
    padding: 3px 5px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-file {
    color: #ff0000;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
    font-size: 16px;
    user-select: none;
    transition: color 0.3s;
}

.remove-file:hover {
    color: #cc0000;
}

.delete-button:hover {
    background: var(--error-) !important;
    color: var(--almost-white-) !important;
    transition: background 300ms ease, color 300ms ease;
}

.formButtonWrapper .submit-form:hover {
    background: var(--blue-highlight-color-) !important;
    border-color: var(--blue-highlight-color-);
    transition: color 300ms ease, border-color 300ms ease, background 300ms ease;
}

.formButtonWrapper .cancel-button:hover {
    /* background: var(--background-gray-); */
    color: var(--primary-color-);
}

.formButtonWrapper button {
    box-shadow: none;
    transition: box-shadow 300ms ease;
}

.formButtonWrapper button:hover {
    box-shadow: 0 2px 5px rgba(128, 128, 128, 0.223);
}


/*****************************/
/*MOBILE MOBILE MOBILE MOBILE*/
/*****************************/
@media (max-width: 900px) {

    form.popupForm {
        padding: 20px;
    }

}