.trip-shell {
    padding-bottom: 64px;
}

.trip-breadcrumbs {
    padding-top: 2px;
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #909a94;

    font-size: 13px;
}

.trip-breadcrumbs a {
    color: #68756e;
    text-decoration: none;
}

.trip-breadcrumbs a:hover {
    color: #16a66a;
}

.trip-heading {
    margin-bottom: 30px;
}

.trip-heading .profile-label {
    display: inline-block;
    margin-bottom: 10px;
}

.trip-heading h1 {
    margin: 0 0 10px;

    color: #17211c;

    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.trip-heading p {
    max-width: 720px;
    margin: 0;

    color: #6b7280;

    font-size: 16px;
    line-height: 1.65;
}

.trip-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(340px, .72fr);

    align-items: start;
    gap: 22px;
}

.trip-form {
    display: grid;
    gap: 18px;
}

.trip-card,
.trip-result-card,
.trip-info-card {
    background: #fff;
    border: 1px solid #e2e8e4;
    border-radius: 20px;
    box-shadow:
        0 10px 32px rgba(23, 33, 28, .04);
}

.trip-card {
    padding: 26px;
}

.trip-card-heading {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.trip-card-heading h2 {
    margin: 1px 0 5px;

    color: #17211c;

    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -.25px;
}

.trip-card-heading p {
    margin: 0;

    color: #87918b;

    font-size: 13px;
    line-height: 1.5;
}

.trip-step {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #15965f;
    background: #ecf8f2;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;
}

.trip-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.trip-field-label {
    display: block;
    margin-bottom: 8px;

    color: #35413b;

    font-size: 13px;
    font-weight: 700;
}

.trip-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;

    color: #17211c;
    background: #fff;

    border: 1px solid #dce3df;
    border-radius: 12px;
    outline: none;

    font: inherit;
    font-size: 15px;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

.trip-field input:focus {
    border-color: #6bc79d;
    box-shadow:
        0 0 0 3px rgba(22, 166, 106, .1);
}

.trip-field small {
    display: block;
    margin-top: 8px;

    color: #98a09b;

    font-size: 12px;
    line-height: 1.5;
}

.trip-unit-input {
    position: relative;
}

.trip-unit-input input {
    padding-right: 108px;
}

.trip-unit-input > span {
    position: absolute;
    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    color: #929b96;

    font-size: 12px;
    font-weight: 600;

    pointer-events: none;
}

.trip-quick-distance {
    margin-top: 16px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.trip-quick-distance > span {
    margin-right: 2px;

    color: #929b96;

    font-size: 12px;
}

.trip-quick-distance button {
    min-height: 32px;
    padding: 0 11px;

    color: #66736c;
    background: #f4f6f5;

    border: 0;
    border-radius: 9px;

    cursor: pointer;

    font: inherit;
    font-size: 12px;
    font-weight: 600;

    transition:
        color .15s ease,
        background .15s ease;
}

.trip-quick-distance button:hover {
    color: #148d5a;
    background: #eaf7f1;
}

.trip-switch {
    display: flex;
    align-items: center;
    gap: 11px;

    cursor: pointer;
}

.trip-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.trip-switch-control {
    position: relative;

    width: 42px;
    height: 24px;

    flex: 0 0 42px;

    background: #dce2df;
    border-radius: 999px;

    transition: background .18s ease;
}

.trip-switch-control::after {
    content: "";

    position: absolute;
    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 1px 4px rgba(23, 33, 28, .18);

    transition: transform .18s ease;
}

.trip-switch input:checked
+ .trip-switch-control {
    background: #16a66a;
}

.trip-switch input:checked
+ .trip-switch-control::after {
    transform: translateX(18px);
}

.trip-switch-text {
    color: #35413b;

    font-size: 14px;
    font-weight: 600;
}

.trip-fuel-fields {
    margin-top: 22px;
}

.trip-result {
    position: sticky;
    top: 22px;

    display: grid;
    gap: 14px;
}

.trip-result-card {
    padding: 27px;
}

.trip-result-label {
    display: block;
    margin-bottom: 10px;

    color: #15965f;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.trip-result-card > h2 {
    margin: 0 0 7px;

    color: #13915d;

    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -.8px;
}

.trip-result-description {
    margin: 0;

    color: #7c8781;

    font-size: 13px;
    line-height: 1.55;
}

.trip-result-main {
    margin-top: 24px;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.trip-stat {
    padding: 13px;

    background: #f6f8f7;
    border-radius: 11px;
}

.trip-stat span {
    display: block;
    margin-bottom: 5px;

    color: #8a938e;

    font-size: 10px;
    line-height: 1.35;
}

.trip-stat strong {
    color: #25312b;

    font-size: 13px;
    line-height: 1.3;
}

.trip-costs {
    margin-top: 22px;

    border-top: 1px solid #edf0ee;
}

.trip-cost-row {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid #edf0ee;
}

.trip-cost-row span {
    color: #78827c;

    font-size: 13px;
}

.trip-cost-row strong {
    color: #26322c;

    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.trip-comparison {
    margin-top: 22px;
    padding: 16px;

    background: #edf8f3;
    border-radius: 13px;
}

.trip-comparison-label {
    display: block;
    margin-bottom: 12px;

    color: #15965f;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.trip-comparison-row {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.trip-comparison-row > div {
    padding: 11px;

    background: rgba(255, 255, 255, .7);
    border-radius: 10px;
}

.trip-comparison-row span {
    display: block;
    margin-bottom: 4px;

    color: #718078;

    font-size: 10px;
}

.trip-comparison-row strong {
    color: #17211c;

    font-size: 14px;
}

.trip-saving {
    margin-top: 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.trip-saving span {
    color: #49705e;

    font-size: 12px;
    font-weight: 600;
}

.trip-saving strong {
    color: #118457;

    font-size: 16px;
}

.trip-result-note {
    margin-top: 22px;
    padding: 14px;

    color: #7d8781;
    background: #f7f8f8;

    border-radius: 12px;

    font-size: 11px;
    line-height: 1.55;
}

.trip-result-note strong {
    display: block;
    margin-bottom: 4px;

    color: #536059;

    font-size: 11px;
}

.trip-result-note p {
    margin: 0;
}

.trip-info-card {
    padding: 19px 21px;
}

.trip-info-card strong {
    color: #35413b;

    font-size: 13px;
}

.trip-info-card p {
    margin: 6px 0 12px;

    color: #89928d;

    font-size: 12px;
    line-height: 1.55;
}

.trip-info-card a {
    color: #15965f;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.trip-info-card a:hover {
    text-decoration: underline;
}

[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .trip-layout {
        grid-template-columns: 1fr;
    }

    .trip-result {
        position: static;
    }
}

@media (max-width: 620px) {
    .trip-heading {
        margin-bottom: 22px;
    }

    .trip-heading h1 {
        font-size: 32px;
    }

    .trip-card,
    .trip-result-card {
        padding: 21px;
        border-radius: 17px;
    }

    .trip-grid {
        grid-template-columns: 1fr;
    }

    .trip-result-main {
        grid-template-columns: 1fr;
    }

    .trip-comparison-row {
        grid-template-columns: 1fr;
    }

    .trip-unit-input input {
        padding-right: 105px;
    }
}
