.atlas-quote {
    --quote-blue: #123b5d;
    --quote-orange: #ff7a00;
    --quote-background: rgba(51, 51, 51, 0.15);
    --quote-white: #ffffff;
    --quote-placeholder: #9fb2c4;

    width: 100%;
    padding: 60px 24px;
    font-family: "Roboto", Arial, sans-serif;
}

.atlas-quote *,
.atlas-quote *::before,
.atlas-quote *::after {
    box-sizing: border-box;
}

.atlas-quote__inner {
    width: min(100%, 1168px);
    margin-inline: auto;
    padding: 50px 80px 48px;
    border-radius: 45px;
    background: var(--quote-background);
}

.atlas-quote__header {
    margin-bottom: 34px;
    text-align: center;
}

.atlas-quote__header h2 {
    margin: 0;
    color: var(--quote-blue);
    font-size: clamp(38px, 4.8vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.atlas-quote__header span {
    display: block;
    width: 195px;
    height: 3px;
    margin: 28px auto 0;
    background: var(--quote-orange);
}

.atlas-quote__form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 31px;
}

.atlas-quote__field {
    min-width: 0;
}

.atlas-quote__field--full,
.atlas-quote__dimensions,
.atlas-quote__actions {
    grid-column: 1 / -1;
}

.atlas-quote__field label,
.atlas-quote__dimensions legend {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    color: var(--quote-blue);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.atlas-quote__field input,
.atlas-quote__field select,
.atlas-quote__dimension-fields input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 2px solid transparent;
    border-radius: 9px;
    outline: none;
    background: var(--quote-white);
    color: var(--quote-blue);
    font: inherit;
    font-size: 16px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.atlas-quote__field select {
    cursor: pointer;
}

.atlas-quote input::placeholder {
    color: var(--quote-placeholder);
    opacity: 1;
}

.atlas-quote__field input:focus,
.atlas-quote__field select:focus,
.atlas-quote__dimension-fields input:focus {
    border-color: var(--quote-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.atlas-quote__field input.is-invalid,
.atlas-quote__field select.is-invalid,
.atlas-quote__dimension-fields input.is-invalid {
    border-color: #e5484d;
}

.atlas-quote__dimensions {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.atlas-quote__dimension-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 29px;
}

.atlas-quote__dimension-fields > div {
    min-width: 0;
}

.atlas-quote__dimension-fields span {
    display: block;
    margin: 7px 0 0 3px;
    color: #d9e0e5;
    font-size: 12px;
}

.atlas-quote__error {
    display: block;
    min-height: 16px;
    margin: 5px 0 -21px 4px;
    color: #FF7A00;
    font-size: 18px;
    line-height: 1.3;
}

.atlas-quote__actions {
    margin-top: 18px;
    text-align: center;
}

.atlas-quote__button {
    min-width: 196px;
    min-height: 51px;
    padding: 11px 30px;
    border: 2px solid #fff;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--quote-orange);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.atlas-quote__button:hover,
.atlas-quote__button:focus-visible {
    background: #fff;
    color: var(--quote-orange);
    transform: translateY(-2px);
}

.atlas-quote__button:focus-visible {
    outline: 3px solid rgba(255, 122, 0, 0.45);
    outline-offset: 4px;
}

.atlas-quote__button:disabled {
    cursor: wait;
    opacity: 0.85;
    transform: none;
}

.atlas-quote__spinner {
    display: none;
    width: 19px;
    height: 19px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: atlas-quote-spin 700ms linear infinite;
}

.atlas-quote__success-icon {
    display: none;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    place-items: center;
    background: #fff;
    color: #18864b;
    font-size: 14px;
    font-weight: 900;
}

.atlas-quote__button.is-loading .atlas-quote__spinner {
    display: inline-block;
}

.atlas-quote__button.is-success {
    border-color: #18864b;
    background: #18864b;
}

.atlas-quote__button.is-success .atlas-quote__success-icon {
    display: grid;
}

.atlas-quote__message {
    min-height: 24px;
    max-width: 680px;
    margin: 13px auto 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.atlas-quote__message.is-success {
    color: darkgreen;
    font-size:20px;
}

.atlas-quote__message.is-error {
    color: #ffb5b5;
}

.atlas-quote__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.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;
}

@keyframes atlas-quote-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 800px) {
    .atlas-quote {
        padding-inline: 18px;
    }

    .atlas-quote__inner {
        padding: 46px 34px 42px;
        border-radius: 34px;
    }
}

@media (max-width: 650px) {
    .atlas-quote {
        padding: 40px 14px;
    }

    .atlas-quote__inner {
        padding: 38px 20px;
        border-radius: 28px;
    }

    .atlas-quote__header {
        margin-bottom: 30px;
    }

    .atlas-quote__header span {
        width: 140px;
        margin-top: 20px;
    }

    .atlas-quote__form {
        grid-template-columns: 1fr;
        row-gap: 27px;
    }

    .atlas-quote__field--full,
    .atlas-quote__dimensions,
    .atlas-quote__actions {
        grid-column: auto;
    }

    .atlas-quote__dimension-fields {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .atlas-quote__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-quote__button,
    .atlas-quote input,
    .atlas-quote select {
        transition: none;
    }

    .atlas-quote__spinner {
        animation-duration: 1.5s;
    }
}

.atlas-quote__weight-service {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    width: 100%;
}

.atlas-quote__weight-service > .atlas-quote__field {
    min-width: 0;
}

.atlas-quote__weight-service input,
.atlas-quote__weight-service select {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .atlas-quote__weight-service {
        grid-template-columns: minmax(0, 1fr);
    }
}