﻿body, textarea {
    font-family: sans-serif;
    font-size: 16px;
    background: #f7f7f7;
    color: #2e2e2e;
}

h1 {
    color: black;
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.2;
}

h2 {
    color: black;
    margin: 0;
    font-size: 1.5rem;
}

h3 {
    color: black;
    margin: 0.5em 0;
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 20px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1440px) {
    body {
        font-size: 22px;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2.25rem;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.content {
    padding: 1em;
    width: 100%;
}

@media (min-width: 1024px) {
    .content {
        padding: 3em;
    }
}

.jobs {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.job {
    padding: 1em;
    margin-top: 1em;
    border: solid 1px #e6e6e6;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .job {
        padding: 2em;
    }
}

.job:hover {
    box-shadow: 0 2px 8px 0 rgba(0,135,219,.2);
    border: solid 1px #0087db;
    cursor: pointer;
}

.job-details {
    padding: 1em;
    border: solid 1px #e6e6e6;
    border-radius: 5px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .job-details {
        padding: 2em;
        flex-direction: row-reverse;
    }
}

.job__short-description {
    padding-top: 1em;
    padding-bottom: 1em;
}

.job-info {
    font-size: 14px;
    color: #555;
}

@media (min-width: 768px) {
    .job-info {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .job-info {
        font-size: 18px;
    }
}

@media (min-width: 1440px) {
    .job-info {
        font-size: 20px;
    }
}

.job-info__link {
    color: #555;
    display: block;
}

.job-info__header {
    font-weight: bold;
    white-space: nowrap;
}

.job .job-info {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .job .job-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.job-info__section {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
}

.job-details .job-info {
    order: -1;
    padding-top: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 100%;
}

@media (min-width: 768px) {
    .job-details .job-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .job-details .job-info {
        padding-top: 0;
        margin-right: 2em;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 16em;
    }
}

.job-details-content {
    width: 100%;
}

.job-posting-text li img {
    float: none !important;
}

.top-banner {
    padding-bottom: 1em;
    max-width: 100%;
    height: auto;
}

.bottom-banner {
    padding-top: 1em;
    max-width: 100%;
    height: auto;
}

.busy-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.standard-button {
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 24px;
    background: #ffffff;
    border: 1px solid #d1d1d1;
    box-sizing: border-box;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    color: #2e2e2e;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .standard-button {
        font-size: 18px;
        height: 36px;
    }
}

@media (min-width: 1024px) {
    .standard-button {
        font-size: 20px;
        height: 38px;
    }
}

@media (min-width: 1440px) {
    .standard-button {
        font-size: 22px;
        height: 40px;
    }
}

.standard-button:hover {
    background: #f2f2f2 !important;
    border: 1px solid #d1d1d1 !important;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.07) !important;
}

.standard-button:active {
    background: #e5e5e5 !important;
    border: 1px solid #d1d1d1 !important;
    box-shadow: none !important;
}

.standard-button:disabled {
    color: #ababab !important;
    border-color: #e5e5e5 !important;
    box-shadow: none !important;
    background: #e6e6e6 !important;
    cursor: default !important;
}

.standard-button--primary {
    background: #027AC4;
    color: #ffffff;
    box-shadow: 0px 2px 4px rgba(4, 107, 204, 0.2);
    border: none;
}

.standard-button--primary:hover {
    color: #ffffff !important;
    background: #046BCC !important;
    border: none !important;
}

.standard-button--primary:active {
    background: #0465BF !important;
    border: none !important;
    box-shadow: none !important;
}

.standard-button--primary:disabled:hover {
    color: #ababab !important;
    background: #e6e6e6 !important;
    border: none !important;
}

.form-panel {
    padding: 1em;
    border: solid 1px #e6e6e6;
    border-radius: 5px;
    background: #ffffff;
    margin-top: 2em;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .form-panel {
        padding: 2em;
    }
}

.form-group {
    margin-top: 1em;
}

.form-group__label {
    display: block;
    margin-bottom: 0.5em;
}

.form-group__label--medium {
    font-weight: bold;
    margin-bottom: 0;
}

.form-group__explanatory-text {
    color: #555;
    margin: 0.5em 0 1em 0;
}

input[type="text"],
textarea {
    display: inline-block;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    background: White;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #2e2e2e;
    padding: 5px;
}

@media (min-width: 768px) {
    input[type="text"],
    textarea {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    input[type="text"],
    textarea {
        font-size: 20px;
    }
}

@media (min-width: 1440px) {
    input[type="text"],
    textarea {
        font-size: 22px;
    }
}

input[type="text"]:focus,
textarea:focus {
    border: 1px solid rgb(119, 179, 216);
    -moz-box-shadow: inherit;
    -webkit-box-shadow: inherit;
    box-shadow: 0 0 4px rgb(200, 224, 239);
    outline-style: none;
}

.has-error input,
.has-error input:focus
{
    border: 1px solid #dd2c1e !important;
    box-shadow: 0 0 6px 0 rgba(221, 44, 30, 0.25);
}

.field-validation-error,
label.error {
    display: block;
    margin: 5px 0 5px 0;
    color: #dd2c1e;
    font-weight: bold !important;
    line-height: 18px;
    background-image: url(svg/error.svg);
    background-repeat: no-repeat;
    padding-left: 21px;
}

/* Aurelia dialog */
ux-dialog-overlay.active {
    background: black;
    opacity: .5 !important;
}

ux-dialog-overlay.ux-dialog-overlay--invisible {
    background: none;
}

ux-dialog.ui-dialog {
    display: inline-block;
    width: initial;
}

ux-dialog.ui-dialog .ui-dialog-buttonpane {
    margin: 0;
    overflow: hidden;
}

ux-dialog.ui-dialog .ui-dialog-buttonpane .ui-button {
    font-size: 16px;
}

ux-dialog.ui-dialog .ui-dialog-titlebar {
    font-weight: bold;
    font-size: 18px;
    user-select: none;
    background-color: #F7F7F7;
}

@media (min-width: 768px) {
    ux-dialog.ui-dialog .ui-dialog-buttonpane .ui-button {
        font-size: 18px;
    }

    ux-dialog.ui-dialog .ui-dialog-titlebar {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    ux-dialog.ui-dialog .ui-dialog-buttonpane .ui-button {
        font-size: 20px;
    }

    ux-dialog.ui-dialog .ui-dialog-titlebar {
        font-size: 22px;
    }
}

@media (min-width: 1440px) {
    ux-dialog.ui-dialog .ui-dialog-buttonpane .ui-button {
        font-size: 22px;
    }

    ux-dialog.ui-dialog .ui-dialog-titlebar {
        font-size: 24px;
    }
}

ux-dialog.ui-dialog .ui-dialog-titlebar .dialog-header-content {
    display: inline-block;
    vertical-align: middle;
}

.socal-media-buttons {
    margin-top: 1em;
    float: right;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.checkbox--indent {
    margin-left: 12px;
}

.checkbox--disabled {
    opacity: .4;
}

.checkbox__label {
    flex: 1;
    line-height: 18px;
}

@media (min-width: 768px) {
    .checkbox__label {
        line-height: 20px;
    }
}

@media (min-width: 1024px) {
    .checkbox__label {
        line-height: 22px;
    }
}

@media (min-width: 1440px) {
    .checkbox__label {
        line-height: 24px;
    }
}

.checkbox__label p {
    margin: 0;
}

.clickable {
    cursor: pointer;
}

.svg-checkbox {
    background: url(../Content/svg/checkbox.svg) no-repeat;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.svg-checkbox-checked {
    background: url(../Content/svg/checkbox-checked.svg) no-repeat;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

@media (min-width: 768px) {
    .svg-checkbox {
        width: 18px;
        height: 18px;
    }

    .svg-checkbox-checked {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 1024px) {
    .svg-checkbox {
        width: 20px;
        height: 20px;
    }

    .svg-checkbox-checked {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1440px) {
    .svg-checkbox {
        width: 22px;
        height: 22px;
    }

    .svg-checkbox-checked {
        width: 22px;
        height: 22px;
    }
}

.svg-checkbox--align-top {
    align-self: flex-start;
    margin-top: 1px;
    margin-bottom: 1px;
}

.svg-radiobutton {
    background: url(../Content/svg/radiobutton.svg) no-repeat;
    width: 19px;
    height: 19px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.svg-radiobutton-checked {
    background: url(../Content/svg/radiobutton-checked.svg) no-repeat;
    width: 19px;
    height: 19px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

@media (min-width: 768px) {
    .svg-radiobutton {
        width: 21px;
        height: 21px;
    }

    .svg-radiobutton-checked {
        width: 21px;
        height: 21px;
    }
}

@media (min-width: 1024px) {
    .svg-radiobutton {
        width: 23px;
        height: 23px;
    }

    .svg-radiobutton-checked {
        width: 23px;
        height: 23px;
    }
}

@media (min-width: 1440px) {
    .svg-radiobutton {
        width: 25px;
        height: 25px;
    }

    .svg-radiobutton-checked {
        width: 25px;
        height: 25px;
    }
}

.flex-gap-d {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.padding-top-b {
    padding-top: 4px;
}

.padding-top-d {
    padding-top: 12px;
}

.padding-top-f {
    padding-top: 24px;
}

.form-group__read-only-value {
    background: #F2F2F2;
    border-radius: 4px;
    padding: 7px 12px;
}

.svg-photo-placeholder {
    background: url(../Content/svg/photo-placeholder.svg) no-repeat;
    width: 128px;
    height: 128px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

@media (min-width: 768px) {
    .svg-photo-placeholder {
        width: 148px;
        height: 148px;
    }
}

@media (min-width: 1024px) {
    .svg-photo-placeholder {
        width: 168px;
        height: 168px;
    }
}

@media (min-width: 1440px) {
    .svg-photo-placeholder {
        width: 188px;
        height: 188px;
    }
}

.photo #currentPhoto {
    max-height: 207px;
    max-width: 207px;
    display: block;
}

.bold {
    font-weight: bold;
}

.dialog-img-upload__image {
    display: block;
    max-width: 100%;
    width: 100%;
}

.dialog-img-upload__container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 512px;
    max-height: 512px;
}

.ui-dialog__footer {
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 9px 16px;
    margin: 0;
}

.drop-zone {
    min-height: 41px; /* Adjusted to accommodate files */
    border: 2px dashed lightgray;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drop-zone--read-only {
    border: 1px solid lightgray;
}

.drop-zone.dragging {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.drop-zone p {
    margin: 0;
}

.drop-zone a {
    color: rgb(0, 102, 204);
    text-decoration: underline;
    cursor: pointer;
}

/* File upload container */
.file-upload-container {
    width: 100%;
}

/* File list styling */
.file-list {
    margin-top: 15px;
    list-style-type: none;
    padding-left: 0;
    text-align: left;
    width: 100%;
}

.file-list-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 40px 16px 0;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
}

.file-list-item:last-child {
    border-bottom: none;
}

.file-list-item.direct-upload {
    border-left: 3px solid #027AC4;
    padding-left: 12px;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-right: 32px; /* Ensure space for remove button */
}

.file-name {
    font-weight: 500;
    color: #2e2e2e;
    word-break: break-word;
    flex: 1;
}

.file-size {
    display: none;
}

/* Upload status styling */
.upload-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    margin-right: 32px; /* Ensure space for remove button */
}

/* Progress bar styling */
.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: #e6e6e6;
    border-radius: 3px;
    overflow: hidden;
    margin-right: 8px;
}

.progress {
    height: 100%;
    background-color: #027AC4;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 16px;
    color: #666;
    white-space: nowrap;
    min-width: 35px;
}

/* Status indicators */
.status-completed {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #28a745;
    font-size: 16px;
    font-weight: 500;
}

.status-failed {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #dc3545;
    font-size: 16px;
}

.error-message {
    font-size: 16px;
    color: #dc3545;
    word-break: break-word;
}

.retry-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    align-self: flex-start;
}

.retry-button:hover {
    background: #c82333;
}

.status-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-icon.completed:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.remove-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #666;
    padding: 4px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .remove-button {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    
    .file-list-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 20px 40px 20px 0;
    }
    
    .file-list-item.direct-upload {
        padding-left: 16px;
    }
    
    .upload-status {
        margin-top: 0;
        margin-right: 32px; /* Space for remove button */
        min-width: 200px;
        justify-content: flex-end;
    }
    
    .file-info {
        flex: 1;
        margin-right: 44px; /* Add some spacing between file info and status, accounting for larger remove button */
    }
 
    .file-size {
        display: inline-block;
        font-size: 16px;
        color: #666;
        margin-left: 12px;
        white-space: nowrap;
    }
}

@media (min-width: 1024px) {
    .remove-button {
        font-size: 28px;
        width: 32px;
        height: 32px;
    }
    
    .file-list-item {
        padding: 20px 44px 20px 0;
    }
    
    .file-list-item.direct-upload {
        padding-left: 16px;
    }
    
    .upload-status {
        margin-right: 36px; /* Space for larger remove button */
        min-width: 220px;
    }
    
    .file-info {
        margin-right: 48px; /* Space for larger remove button */
    }
}

@media (min-width: 1440px) {
    .remove-button {
        font-size: 32px;
        width: 36px;
        height: 36px;
    }
    
    .upload-status {
        margin-right: 40px; /* Space for largest remove button */
        min-width: 240px;
    }
    
    .file-info {
        margin-right: 52px; /* Space for largest remove button */
    }
}

.remove-button:hover {
    opacity: 0.5;
}

/* Responsive Design */
.drop-zone ul {
    margin: 0;
    padding: 0;
    width: 100%;
}

.drop-zone ul li {
    margin-top: 5px;
}

textarea {
    height: 100px;
    resize: vertical;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    textarea {
        height: 110px;
    }
}

@media (min-width: 1024px) {
    textarea {
        height: 120px;
    }
}

@media (min-width: 1440px) {
    textarea {
        height: 130px;
    }
}

.my-application-panel {
    margin: 0 auto;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.1);
}

.title-bar {
    color: #2e2e2e;
    padding: 1em;
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .title-bar {
        padding: 2em;
    }
}

.title-bar__footer {
    height: 0.5em;
    background: linear-gradient(#f6f6f6, #ffffff)
}

@media (min-width: 768px) {
    .title-bar__footer {
        height: 1em;
    }
}

.my-application-content {
    padding: 0.5em 1em 1em 1em;
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .my-application-content {
        padding: 1em 2em 2em 2em;
    }
}

.tab-menu {
    background-color: #ffffff;
    display: flex;
    padding: 0 10px;
    flex-direction: column;
}

@media (min-width: 768px) {
    .tab-menu {
        flex-direction: row;
        gap: 20px;
    }
}

.tab-menu button {
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 10px 10px;
    font-size: 16px;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border: 3px solid #e5e5e5;
    margin-bottom: 0.5em;
    border-radius: 5px;
}

@media (min-width: 768px) {
    .tab-menu button {
        font-size: 18px;
        border-left: none;
        border-right: none;
        border-top: none;
        margin-bottom: 0;
        border-radius: 0;
    }
}

@media (min-width: 1024px) {
    .tab-menu button {
        font-size: 20px;
    }
}

@media (min-width: 1440px) {
    .tab-menu button {
        font-size: 22px;
    }
}

.tab-menu button.active {
    color: #bf591b;
    border: 3px solid #bf591b;
}

@media (min-width: 768px) {
    .tab-menu button.active {
        border-left: none;
        border-right: none;
        border-top: none;
    }
}
