/* =========================================================
   CHS PERTH
   WORK REQUEST PAGE
   ========================================================= */


/* =========================================================
   PAGE HERO
   ========================================================= */

.work-request-hero {
    padding: 72px 0 58px;

    background:
        linear-gradient(
            135deg,
            #1f5f8d 0%,
            #2f79ae 100%
        );

    color: #ffffff;
}

.work-request-hero .eyebrow {
    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.75);
}

.work-request-hero h1 {
    margin: 0;

    max-width: 700px;

    color: #ffffff;

    font-size: clamp(38px, 6vw, 62px);
    line-height: 1;
}

.work-request-hero p:not(.eyebrow) {
    max-width: 650px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 17px;
    line-height: 1.7;
}

/* =========================================================
   WORK REQUEST LOGO
   ========================================================= */

.work-request-hero .container {
    position: relative;
}

.work-request-logo-link {
    position: absolute;

    top: 45px;
    right: 70px;

    display: block;

    margin: 0;
}

.work-request-logo {
    display: block;

    width: 210px;
    height: auto;
}

.work-request-logo {
    display: block;

    width: 180px;
    height: auto;
}

@media (max-width: 600px) {

.work-request-logo-link {
    position: static;

    display: block;

    margin: 0 0 26px;

    text-align: center;
}

.work-request-logo {
    width: 130px;

    margin: 0 auto;
}

}


/* =========================================================
   FORM SECTION
   ========================================================= */

.work-request-section {
    padding: 70px 0 90px;

    background: #f4f7f9;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.work-request-form {
    max-width: 920px;

    margin: 0 auto;

    padding: 44px;

    background: #ffffff;

    border: 1px solid #e0e7ec;

    border-radius: 10px;

    box-shadow:
        0 14px 40px
        rgba(20, 47, 68, 0.08);
}


/* =========================================================
   FORM GRID
   ========================================================= */

.work-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   FIELDS
   ========================================================= */

.work-form-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.work-form-field label {
    color: #263746;

    font-size: 14px;
    font-weight: 700;
}

.work-form-field label span {
    color: #c53b3b;
}

.work-form-field input,
.work-form-field select,
.work-form-field textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #ccd7df;

    border-radius: 6px;

    background: #ffffff;

    color: #263746;

    font: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.work-form-field input,
.work-form-field select {
    min-height: 50px;
}

.work-form-field textarea {
    min-height: 170px;

    resize: vertical;

    line-height: 1.6;
}

.work-form-field input:hover,
.work-form-field select:hover,
.work-form-field textarea:hover {
    border-color: #9fb5c4;
}

.work-form-field input:focus,
.work-form-field select:focus,
.work-form-field textarea:focus {
    border-color: #2f79ae;

    box-shadow:
        0 0 0 3px
        rgba(47, 121, 174, 0.13);
}

.work-form-field input::placeholder,
.work-form-field textarea::placeholder {
    color: #8998a3;
}


/* =========================================================
   FULL WIDTH FIELDS
   ========================================================= */

.work-form-full {
    margin-top: 26px;
}


/* =========================================================
   PHOTO UPLOAD
   ========================================================= */

.work-photo-upload {
    position: relative;

    padding: 28px;

    border: 2px dashed #b9cad6;

    border-radius: 8px;

    background: #f8fbfd;

    text-align: center;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.work-photo-upload:hover {
    border-color: #2f79ae;

    background: #f2f8fc;
}


/* Hide the ugly native file input */

.work-photo-upload input[type="file"] {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* Custom photo button */

.work-photo-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-width: 180px;

    padding: 12px 20px;

    border: 0;

    border-radius: 6px;

    background: #2f79ae;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.04em;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.work-photo-button:hover {
    background: #276894;

    transform: translateY(-1px);
}

.work-photo-upload p {
    margin: 13px 0 0;

    color: #6e7f8b;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   SELECTED PHOTO PREVIEWS
   ========================================================= */

.work-photo-list {
    margin-top: 16px;
}

.photo-summary {
    margin: 0 0 12px;

    color: #287144;

    font-size: 13px;
    font-weight: 700;
}

.photo-error {
    margin: 0;

    color: #9d2929;

    font-size: 13px;
    font-weight: 700;
}


/* Preview grid */

.work-photo-preview-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;
}


/* Individual preview */

.work-photo-preview {
	position: relative;
	
    min-width: 0;

    overflow: hidden;

    border: 1px solid #dce5ea;

    border-radius: 7px;

    background: #ffffff;
}

/* Remove selected photo */

.work-photo-remove {
    position: absolute;

    top: 7px;
    right: 7px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(20, 30, 38, 0.82);

    color: #ffffff;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.2);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.work-photo-remove:hover {
    background: #b52f2f;

    transform: scale(1.08);
}

.work-photo-remove:focus-visible {
    outline: 3px solid #ffffff;

    outline-offset: 2px;
}

.work-photo-preview img {
    display: block;

    width: 100%;
    height: 110px;

    object-fit: cover;

    background: #eef2f5;
}

.work-photo-preview span {
    display: block;

    padding: 8px;

    color: #65747f;

    font-size: 11px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   PHOTO PREVIEWS - TABLET
   ========================================================= */

@media (max-width: 800px) {

    .work-photo-preview-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   PHOTO PREVIEWS - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .work-photo-preview-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .work-photo-preview img {
        height: 120px;
    }

}


/* =========================================================
   SUBMIT AREA
   ========================================================= */

.work-form-submit {
    margin-top: 34px;

    display: flex;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.work-submit-button {
    min-width: 230px;

    padding: 14px 24px;

    border: 0;

    border-radius: 6px;

    background: #2f79ae;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.05em;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.work-submit-button:hover {
    background: #276894;

    transform: translateY(-2px);
}

.work-submit-button:disabled {
    opacity: 0.6;

    cursor: wait;

    transform: none;
}

.work-form-note {
    margin: 0;

    color: #71818c;

    font-size: 12px;
}


/* =========================================================
   SUCCESS / ERROR MESSAGE
   ========================================================= */

.work-form-message {
    margin-top: 26px;

    padding: 17px 20px;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.5;
}

.work-form-message.success {
    border: 1px solid #b9dfc5;

    background: #edf8f1;

    color: #23683a;
}

.work-form-message.error {
    border: 1px solid #efbcbc;

    background: #fff1f1;

    color: #9d2929;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .work-request-hero {
        padding: 58px 0 48px;
    }

    .work-request-section {
        padding: 50px 0 70px;
    }

    .work-request-form {
        padding: 32px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .work-request-hero {
        padding: 46px 0 40px;
    }

    .work-request-hero h1 {
        font-size: 40px;
    }

    .work-request-hero p:not(.eyebrow) {
        font-size: 15px;
    }

    .work-request-section {
        padding: 32px 0 50px;
    }

    .work-request-form {
        padding: 24px 18px;

        border-radius: 8px;
    }

    .work-form-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .work-form-full {
        margin-top: 20px;
    }

    .work-photo-upload {
        padding: 24px 14px;
    }

    .work-photo-button {
        width: 100%;
    }

    .work-form-submit {
        margin-top: 28px;

        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }

    .work-submit-button {
        width: 100%;

        min-width: 0;
    }

    .work-form-note {
        text-align: center;
    }

}

.form-terms {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4f5f69;
}

.form-terms a {
    color: #17496b;
    font-weight: 600;
    text-decoration: underline;
}