/* =========================================================
   TRAILER RENTAL PAGE
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(246, 181, 25, 0.10),
            transparent 28%
        ),
        #f2f2ef;

    color: #111418;
}


/* =========================================================
   PAGE SHELL
========================================================= */

.trailer-rental-page {
    min-height: 100vh;

    padding: 70px 24px;
}

.trailer-rental-page .container {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.trailer-rental-header {
    max-width: 720px;

    margin-bottom: 34px;
}

.trailer-rental-header .section-label {
    margin: 0 0 12px;

    color: #d49400;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 3px;
}

.trailer-rental-header h1 {
    margin: 0;

    font-size:
        clamp(
            42px,
            6vw,
            68px
        );

    line-height: 0.98;

    letter-spacing: -3px;
}

.trailer-rental-header > p:last-child {
    max-width: 610px;

    margin: 20px 0 0;

    color: #6e7478;

    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   ALERTS
========================================================= */

.rental-alert {
    margin-bottom: 18px;

    padding: 15px 18px;

    border-left: 4px solid #f6b519;

    background: #fff8df;

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

.rental-alert-success {
    border-left-color: #2fa85f;
    background: #eaf7ef;
}

.rental-alert-warning {
    border-left-color: #e0a100;
    background: #fff7df;
}


/* =========================================================
   FORM CARD
========================================================= */

.trailer-rental-form {
    padding: 34px;

    background: #ffffff;

    border: 1px solid #deded8;

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, 0.06);
}


/* =========================================================
   FORM GRID
========================================================= */

.rental-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.rental-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.rental-field-wide {
    grid-column: 1 / -1;
}

.rental-field label {
    color: #34383b;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* =========================================================
   INPUTS
========================================================= */

.rental-field input,
.rental-field select,
.rental-field textarea {
    width: 100%;

    padding:
        14px
        15px;

    background: #f8f8f6;

    color: #111418;

    border:
        1px solid
        #d8d8d3;

    border-radius: 0;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.rental-field input,
.rental-field select {
    min-height: 50px;
}

.rental-field textarea {
    min-height: 130px;

    resize: vertical;
}

.rental-field input:focus,
.rental-field select:focus,
.rental-field textarea:focus {
    background: #ffffff;

    border-color: #f6b519;

    box-shadow:
        0 0 0 3px
        rgba(246, 181, 25, 0.11);
}


/* =========================================================
   ADDRESS SECTION
========================================================= */

.rental-address-section {
    margin-top: 34px;
    padding-top: 30px;

    border-top:
        1px solid
        #e5e5e0;
}

.rental-address-section .section-label {
    margin: 0 0 17px;

    color: #d49400;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2.4px;
}


/* =========================================================
   PURPOSE FIELD
========================================================= */

.rental-address-section + .rental-field {
    margin-top: 30px;
}


/* =========================================================
   ID VERIFICATION
========================================================= */

.rental-id-section {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    align-items: center;

    gap: 30px;

    margin-top: 36px;
    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #0d1012,
            #171c20
        );

    color: #ffffff;

    border:
        1px solid
        #252b30;
}

.rental-id-section .section-label {
    margin: 0 0 8px;

    color: #f6b519;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;
}

.rental-id-section h2 {
    margin: 0;

    font-size: 26px;
}

.rental-id-section > div > p:last-child {
    max-width: 470px;

    margin-top: 10px;

    color: #929ca4;

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


/* =========================================================
   ID UPLOAD
========================================================= */
.rental-document-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rental-id-upload {
    min-height: 170px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 20px;

    background: #12171a;

    border:
        1px dashed
        #545d64;

    text-align: center;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.rental-id-upload:hover {
    background: #171d21;

    border-color: #f6b519;

    transform: translateY(-2px);
}

.rental-id-upload input {
    width: 100%;

    color: #aab2b8;

    font-size: 10px;
}

.rental-id-upload strong {
    color: #ffffff;

    font-size: 13px;
}

.rental-id-upload span {
    color: #777f85;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}


/* =========================================================
   AGREEMENT
========================================================= */

.rental-agreement {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 26px;
    padding: 17px 18px;

    background: #f7f7f4;

    border:
        1px solid
        #e1e1dc;

    cursor: pointer;
}

.rental-agreement input {
    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    margin-top: 2px;

    accent-color: #f6b519;
}

.rental-agreement span {
    color: #666b6e;

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


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.rental-submit-button {
    width: 100%;
    min-height: 58px;

    margin-top: 22px;

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

    background: #f6b519;
    color: #111418;

    border: none;

    font-family: inherit;
    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rental-submit-button:hover {
    background: #ffc42d;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px
        rgba(246, 181, 25, 0.22);
}
/* =========================================================
   DELIVERY ADDRESS TOGGLE
========================================================= */

.rental-address-section {
    display: none;
}

.rental-address-section.show {
    display: block;
    animation: rentalAddressOpen 0.25s ease;
}

@keyframes rentalAddressOpen {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}
/* =========================================================
   RENTAL DATE PICKER
========================================================= */

.rental-date-picker-button {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    background: #f8f8f6;
    border: 1px solid #d8d8d3;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.rental-date-picker-button:hover {
    background: #ffffff;
    border-color: #f6b519;
}

.rental-date-picker-button.active {
    background: #ffffff;
    border-color: #f6b519;
    box-shadow:
        0 0 0 3px
        rgba(246, 181, 25, 0.11);
}

.rental-date-picker-button span {
    color: #7a8084;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.rental-date-picker-button strong {
    color: #111418;
    font-size: 13px;
}


/* =========================================================
   AVAILABILITY CALENDAR
========================================================= */

.rental-calendar {
    display: none;
    margin-top: 18px;
    padding: 26px;
    background:
        linear-gradient(
            145deg,
            #0d1012,
            #171c20
        );
    color: #ffffff;
    border: 1px solid #252b30;
    box-shadow:
        0 24px 60px
        rgba(0, 0, 0, 0.16);
}

.rental-calendar.show {
    display: block;
    animation: rentalCalendarOpen 0.22s ease;
}

@keyframes rentalCalendarOpen {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   CALENDAR HEADER
========================================================= */

.rental-calendar-header {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.rental-calendar-header > div {
    text-align: center;
}

.rental-calendar-header .section-label {
    display: block;
    margin-bottom: 5px;
    color: #f6b519;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2.4px;
}

.rental-calendar-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
    letter-spacing: -0.5px;
}

.rental-calendar-arrow {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #171c20;
    color: #ffffff;
    border: 1px solid #343b40;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.rental-calendar-arrow:hover {
    background: #f6b519;
    color: #111418;
    border-color: #f6b519;
}


/* =========================================================
   WEEKDAYS
========================================================= */

.rental-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}

.rental-calendar-weekdays span {
    padding: 8px 4px;
    color: #727b81;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   CALENDAR DAYS
========================================================= */

.rental-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.rental-calendar-day {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #151a1e;
    color: #dfe3e5;
    border: 1px solid #252c31;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.rental-calendar-day:hover:not(:disabled) {
    background: #20262b;
    border-color: #f6b519;
    transform: translateY(-1px);
}


/* EMPTY CALENDAR CELLS */

.rental-calendar-day-empty {
    min-height: 58px;
}


/* TODAY */

.rental-calendar-day.today {
    border-color: #f6b519;
}

.rental-calendar-day.today::after {
    content: "";
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    background: #f6b519;
    border-radius: 50%;
}


/* SELECTED START / END */

.rental-calendar-day.selected {
    background: #f6b519;
    color: #111418;
    border-color: #f6b519;
}


/* DAYS BETWEEN START + END */

.rental-calendar-day.in-range {
    background: rgba(246, 181, 25, 0.15);
    color: #ffffff;
    border-color: rgba(246, 181, 25, 0.35);
}


/* RESERVED */

.rental-calendar-day.reserved,
.rental-calendar-day:disabled {
    background:
        repeating-linear-gradient(
            -45deg,
            #171a1c,
            #171a1c 6px,
            #1c2023 6px,
            #1c2023 12px
        );
    color: #555d62;
    border-color: #252a2e;
    cursor: not-allowed;
    opacity: 0.7;
}


/* PAST DAYS */

.rental-calendar-day.past {
    color: #41484d;
    background: #111518;
    border-color: #1c2124;
    cursor: not-allowed;
    opacity: 0.5;
}


/* =========================================================
   CALENDAR LEGEND
========================================================= */

.rental-calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #272e33;
}

.rental-calendar-legend > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8b949a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.calendar-legend-dot {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
}

.calendar-legend-dot.available {
    background: #ffffff;
}

.calendar-legend-dot.selected {
    background: #f6b519;
}

.calendar-legend-dot.unavailable {
    background: #4c5459;
}
/* =========================================================
   RENTAL PRICING + REQUIREMENTS
========================================================= */

.trailer-rental-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;

    margin-bottom: 30px;
}

.trailer-rental-pricing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rental-price-card {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px;

    background:
        linear-gradient(
            145deg,
            #0d1012,
            #171c20
        );

    border: 1px solid #252b30;
}

.rental-price-card span {
    color: #f6b519;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.8px;
}

.rental-price-card strong {
    color: #ffffff;

    font-size: 42px;
    line-height: 1;

    letter-spacing: -2px;
}

.rental-pickup-info {
    padding: 24px;

    background: #ffffff;

    border: 1px solid #deded8;
}

.rental-pickup-info strong {
    display: block;

    margin-bottom: 10px;

    color: #111418;

    font-size: 17px;
}

.rental-pickup-info p {
    margin: 0 0 10px;

    color: #6e7478;

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

.rental-pickup-info p:last-child {
    margin-bottom: 0;
}

.rental-requirements {
    grid-column: 1 / -1;

    padding: 26px 28px;

    background: #fff8df;

    border-left: 4px solid #f6b519;
}

.rental-requirements h2 {
    margin: 0 0 14px;

    color: #111418;

    font-size: 22px;
}

.rental-requirements ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px 30px;

    margin: 0;
    padding-left: 18px;
}

.rental-requirements li {
    color: #555b5f;

    font-size: 13px;
    line-height: 1.6;
}
.trailer-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;

    color: #111111;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.trailer-back-home:hover {
    color: #f0b429;
    transform: translateX(-3px);
}

.identity-verification-box {
    display: flex;
    gap: 18px;
    padding: 22px;
    margin-top: 22px;
    margin-bottom: 24px;
    background: #111111;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
}

.identity-verification-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0b429;
    color: #111111;
    border-radius: 6px;
    font-size: 20px;
}

.identity-verification-content {
    flex: 1;
}

.identity-verification-content h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.identity-verification-content p {
    margin: 0 0 16px;
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.6;
}

.verify-identity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    background: #f0b429;
    color: #111111;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

.verify-identity-btn:hover {
    background: #d99d16;
}

.identity-status.verified {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-weight: 800;
    font-size: 14px;
}

.identity-security-note {
    display: block;
    margin-top: 12px;
    color: #8c8c8c;
    font-size: 12px;
    line-height: 1.5;
}
.rental-submit-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

.rental-submit-note {
    margin-top: 12px;
    text-align: center;
    color: #777777;
    font-size: 13px;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .identity-verification-box {
        flex-direction: column;
    }

    .verify-identity-btn {
        width: 100%;
    }
}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
    .rental-document-uploads {
        grid-template-columns: 1fr;
    }
    .trailer-rental-info {
        grid-template-columns: 1fr;
        gap: 14px;

        margin-bottom: 24px;
    }

    .trailer-rental-pricing {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rental-price-card {
        min-height: 120px;
        padding: 18px;
    }

    .rental-price-card strong {
        font-size: 34px;
    }

    .rental-pickup-info {
        padding: 20px 18px;
    }

    .rental-requirements {
        grid-column: auto;

        padding: 22px 18px;
    }

    .rental-requirements ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .trailer-rental-page {
        padding:
            38px
            15px;
    }

    .trailer-rental-header {
        margin-bottom: 24px;
    }

    .trailer-rental-header h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .trailer-rental-header > p:last-child {
        font-size: 13px;
    }

    .trailer-rental-form {
        padding: 22px 18px;
    }

    .rental-form-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .rental-field-wide {
        grid-column: auto;
    }

    .rental-id-section {
        grid-template-columns: 1fr;

        padding: 24px 18px;

        gap: 20px;
    }

    .rental-id-section h2 {
        font-size: 23px;
    }

    .rental-id-upload {
        min-height: 145px;
    }

    .rental-agreement {
        padding: 15px;
    }

        .rental-date-picker-button {
        min-height: 64px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
    }

    .rental-calendar {
        margin-top: 15px;
        padding: 18px 12px;
    }

    .rental-calendar-header {
        grid-template-columns: 40px 1fr 40px;
        gap: 8px;
        margin-bottom: 18px;
    }

    .rental-calendar-arrow {
        width: 40px;
        height: 40px;
    }

    .rental-calendar-header h3 {
        font-size: 18px;
    }

    .rental-calendar-weekdays span {
        font-size: 8px;
    }

    .rental-calendar-days {
        gap: 3px;
    }

    .rental-calendar-day,
    .rental-calendar-day-empty {
        min-height: 43px;
    }

    .rental-calendar-day {
        font-size: 11px;
    }

    .rental-calendar-legend {
        gap: 12px;
    }

    .rental-calendar-legend > div {
        font-size: 8px;
    }
}