/* Package detail form hardening: overrides legacy enquiry-grid rules. */
.enquiry-form.je-quote-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100%;
}

.je-quote-form > label,
.je-quote-form > div,
.je-quote-form > button {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1 !important;
}

.je-quote-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(92px, .7fr);
    gap: 10px;
    align-items: end;
}

.je-quote-form label {
    display: block;
    min-width: 0;
}

.je-quote-form .control,
.je-quote-form .phone-input {
    width: 100%;
    min-width: 0;
}

.je-quote-form .phone-input {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
}

.je-quote-form .phone-input > span {
    padding: 0 8px;
}

.je-quote-form .phone-input input {
    min-width: 0;
}

.je-quote-form > .btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 18px !important;
    border-radius: 12px !important;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
}

.je-quote-card {
    overflow: hidden;
}

.je-quote-card,
.je-help-card {
    width: 100%;
}

.je-day-image {
    box-shadow: inset 0 0 0 1px #ffffff22;
}

@media (max-width: 1100px) {
    .je-trip-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 900px) {
    .je-trip-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .je-trip-layout aside {
        width: min(620px, 100%);
    }
}

@media (max-width: 430px) {
    .je-quote-form > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .je-quote-card {
        padding: 19px;
    }
}
