/*
    Green Sticker Form
*/

.green-sticker__form-wrapper {
    width: 550px;
    max-width: 100%;
    min-height: 566px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.green-sticker__form-intro {
    margin-bottom: 20px;
}

.green-sticker__form-wrapper--lookup .green-sticker__form-intro {
    display: none;
}

.green-sticker__form-wrapper--lookup .green-sticker__form-title {
    color: #000;
}

.green-sticker__form-wrapper--lookup .green-sticker__form-content {
    box-shadow: none;
    border: 2px solid #0AB17D;
    border-radius: 16px;
}

.green-sticker__form-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0;
}

.green-sticker__form-content {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 45px 50px 99px 0 rgba(0,0,0,0.36);
}

.green-sticker__form-content-inner {
    border-image: url('../images/decoration-calendar-no-years.svg') 38 0 0 0 round;
    border-top: 40px solid;
}

.green-sticker__form-header {
    background-color: #0AB17D;
    position: relative;
}
.green-sticker__form-header::before {
    content: '';
    background-color: #006847;
    height: 100%;
    width: 40%;
    clip-path: polygon(0% 0, 100% 0, 100% 100%, 30% 100%);
    position: absolute;
    top: 0;
    right: 0;
}
.green-sticker__form-header-content {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 20px;
    position: relative;
}
.green-sticker__form-header-aside {
    width: 30%;
}
.green-sticker__form-header-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 70%;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 20px;
}

.green-sticker__form-body {
    padding: 20px 30px 30px 40px;
}

.green-sticker__form-row {
    margin-bottom: 20px;
}

.green-sticker__form-label {
    color: #666;
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 10px;
}

.green-sticker__form-control {
    color: #000 !important;
    font-size: 16px;
    display: block;
    height: 52px;
    width: 100%;
    padding: 0 15px !important;
    border: 1px solid #e2e2ea !important;
    border-radius: 8px;
    outline: none;
}
.green-sticker__form-control::placeholder {
    color: #666;
}
.green-sticker__form-control::-webkit-inner-spin-button,
.green-sticker__form-control::-webkit-outer-spin-button {
    opacity: 1;
}
.green-sticker__form-control-select {
    appearance: none;
    cursor: pointer;
    background-image: url('../images/icon-caret-down.svg');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: center right 15px;
    padding-right: 42px !important;
}

.green-sticker__form-logo {
    vertical-align: middle;
    width: 140px;
}

.green-sticker__form-blurb {
    display: flex;
    align-items: center;
}
.green-sticker__form-blurb label {
    color: #fff;
    white-space: nowrap;
    margin-bottom: 0;
    margin-right: 10px;
}
.green-sticker__form-blurb input {
    cursor: not-allowed;
    color: #333 !important;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    height: 32px;
    padding: 0 5px !important;
    border-radius: 16px;
}

.green-sticker__form-submit {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}
.green-sticker__form-submit-btn {
    cursor: pointer;
    background-color: #006847;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    height: 52px;
    width: 200px;
    max-width: 100%;
    padding: 0 15px;
    border: solid transparent;
    border-radius: 8px;
    outline: none;
    transition: all 300ms ease 0ms;
}
.green-sticker__form-submit-btn:hover {
    background-color: #015a3e;
}
.green-sticker__form-submit-btn:disabled {
    background-color: #d0d5dd;
    color: #667085;
    cursor: not-allowed;
}

.crane-required {
    border-color: #c02b0a !important;
}

.cranesafe-error {
    background-color: #f8d7da;
    color: #c02b0a;
    font-size: 16px;
    text-align: center;
    padding: 9px 15px;
    border: 1px solid #c02b0a;
    border-radius: 8px;
    margin-top: 20px;
}

.green-sticker__form-result {
    font-size: 16px;
    line-height: 1;
    display: none;
    flex-wrap: wrap;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    margin-top: 20px;
}
.green-sticker__form-result.show {
    display: flex;
}
.status-valid .green-sticker__form-result {
    background-color: #E2EEE8;
    border-color: #0AB17D;
    color: #006847;
}
.status-expired .green-sticker__form-result {
    background-color: #f8d7da;
    border-color: #c02b0a;
    color: #c02b0a;
}

.green-sticker__form-result-field {
    width: 50%;
    padding-top: 5px;
    padding-bottom: 5px;
    position: relative;
}
.green-sticker__form-result-field:nth-child(2n+1) {
    padding-right: 10px;
}
.green-sticker__form-result-field:nth-child(2n+1)::after {
    content: '';
    height: 100%;
    width: 1px;
    position: absolute;
    top: 0;
    right: -0.5px;
}
.status-valid .green-sticker__form-result-field:nth-child(2n+1)::after {
    background-color: #0AB17D;
}
.status-expired .green-sticker__form-result-field:nth-child(2n+1)::after {
    background-color: #c02b0a;
}
.green-sticker__form-result-field:nth-child(2n+2) {
    padding-left: 10px;
}

.green-sticker__form-result-label {
    display: block;
    margin-bottom: 10px;
}

.green-sticker__form-result-value {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

/* ── Progress Bar ────────────────────────────────── */

.green-sticker__form-progress {
    padding: 20px 0 10px;
}

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

.gs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 36px;
    flex-shrink: 0;
    overflow: visible;
    margin: 0 3px;
}

.gs-step__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: background-color 300ms ease;
}

.gs-step__circle svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.gs-step--done .gs-step__circle {
    background-color: #0AB17D;
}

.gs-step--done-orange .gs-step__circle {
    background-color: #F59E0B;
}

/* Outer dashed ring on the current (last completed) step */
.gs-step--current .gs-step__circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed #0AB17D;
}

.gs-step--current-orange .gs-step__circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed #F59E0B;
}

.gs-step__label {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
}

.gs-step--done .gs-step__label {
    color: #006847;
    font-weight: 600;
}

.gs-step--done-orange .gs-step__label {
    color: #B45309;
    font-weight: 600;
}

.gs-step__date {
    display: block;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    margin-top: -4px;
}

/* Connector: sits at flex-start, offset by half the circle height to align with circle centre */
.gs-step__connector {
    position: relative;
    height: 2px;
    flex: 1;
    background-color: #e2e2ea;
    margin-top: 17px;
    overflow: hidden;
}

.gs-step__connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: width 700ms ease, background-color 300ms ease;
}

.gs-step__connector--done::after {
    width: 100%;
    background-color: #0AB17D;
}

.gs-step__connector--done-orange::after {
    width: 100%;
    background-color: #F59E0B;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .green-sticker__form-header-main {
        padding-top: 0;
        padding-bottom: 0;
    }

    .green-sticker__form-blurb label {
        font-size: 12px;
    }
}

@media (max-width: 1199px) {
    .green-sticker__form-wrapper {
        margin-top: 0;
    }

    .green-sticker__form-submit-btn {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .green-sticker__form-wrapper {
        min-height: unset;
    }
}

@media (max-width: 767px) {
    .green-sticker__form-content-inner {
        border-top-width: 30px;
    }

    .green-sticker__form-header-content {
        padding: 10px ;
    }
    .green-sticker__form-header-main {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 10px;
    }

    .green-sticker__form-body {
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .green-sticker__form-label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .green-sticker__form-control {
        font-size: 14px;
        height: 40px;
    }

    .green-sticker__form-blurb label {
        font-size: 12px;
        margin-right: 5px;
    }

    .green-sticker__form-blurb input {
        height: 28px;
    }

    .green-sticker__form-submit-btn {
        font-size: 14px;
        height: 44px;
    }

    .cranesafe-error,
    .green-sticker__form-result {
        font-size: 14px;
    }

    .green-sticker__form-result-value {
        font-size: 16px;
    }
    .green-sticker__form-progress {
        padding: 20px 15px 10px;
    }

}

.green-sticker__form-terms {
    text-align: center;
    margin-top: 15px;
}

.green-sticker__form-terms-link {
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
}

.green-sticker__form-wrapper--lookup .green-sticker__form-terms-link {
    color: #006847;
}

.green-sticker__form-wrapper--lookup .green-sticker__form-find-inspector {
    display: flex;
    justify-content: center;
    padding-left: 10px;
}

.green-sticker__form-find-inspector {
    text-align: center;
    margin-top: 15px;
}

.green-sticker__form-find-inspector-btn {
    display: inline-block;
    background-color: #006847;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    height: 52px;
    line-height: 52px;
    width: 200px;
    max-width: 100%;
    padding: 0 15px;
    border-radius: 8px;
    transition: background-color 300ms ease;
}

.green-sticker__form-find-inspector-btn:hover {
    background-color: #015a3e;
    color: #fff;
}