/* Vehicle catalog request — Add build (desktop dialog + mobile bottom sheet) */

/* CTA row — neutral helper, not a red text link */
.sc-vehicle-request-trigger:not(.u-d-none) {
    animation: sc-vehicle-request-reveal 0.22s ease-out;
}

@keyframes sc-vehicle-request-reveal {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-vehicle-request-trigger:not(.u-d-none) {
        animation: none;
    }
}

.sc-vehicle-request-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #2a2a2e;
    border-radius: 8px;
    background: linear-gradient(180deg, #1a1a1d 0%, #141416 100%);
    color: #c8c8ce;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.sc-vehicle-request-trigger:hover {
    border-color: #3a3a40;
    background: #1c1c20;
}

.sc-vehicle-request-trigger:active {
    transform: scale(0.99);
}

.sc-vehicle-request-trigger:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.sc-vehicle-request-trigger__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #252528;
    color: #a8a8b0;
    flex-shrink: 0;
}

.sc-vehicle-request-trigger:hover .sc-vehicle-request-trigger__glyph {
    color: #e8e8ec;
}

.sc-vehicle-request-trigger__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sc-vehicle-request-trigger__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #f0f0f2;
}

.sc-vehicle-request-trigger__hint {
    font-size: 12px;
    line-height: 1.45;
    color: #8d8d93;
}

.sc-vehicle-request-trigger__chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5b5b61;
    flex-shrink: 0;
}

.sc-vehicle-request-trigger:hover .sc-vehicle-request-trigger__chev {
    color: #a8a8b0;
}

/* Modal shell */
.sc-vehicle-request-modal.sc-modal {
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.sc-vehicle-request-modal .sc-modal-overlay {
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
}

.sc-vehicle-request-modal .sc-vehicle-request-dialog {
    width: 100%;
    max-width: 440px;
    margin: 0;
    min-height: 0;
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
    animation: none !important;
}

.sc-vehicle-request-modal.show:not(.sc-is-closing) .sc-vehicle-request-dialog {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.sc-vehicle-request-modal.sc-is-closing .sc-vehicle-request-dialog {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
    transition:
        transform 0.2s cubic-bezier(0.4, 0, 1, 1),
        opacity 0.18s ease;
}

.sc-vehicle-request-content {
    background: #161618;
    border: 1px solid #2c2c30;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.sc-vehicle-request-handle {
    display: none;
}

.sc-vehicle-request-header {
    position: relative;
    padding: 22px 22px 0;
}

.sc-vehicle-request-header .sc-vehicle-request-title {
    margin: 0;
    padding: 0;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #f3f3f4;
    line-height: 1.2;
}

.sc-vehicle-request-lead {
    margin: 8px 0 0;
    padding-right: 28px;
    font-size: 13px;
    line-height: 1.55;
    color: #8d8d93;
    max-width: none;
}

.sc-vehicle-request-close {
    position: absolute;
    top: 16px;
    right: 14px;
    margin: 0;
    padding: 6px;
    opacity: 0.75;
}

.sc-vehicle-request-close:hover {
    opacity: 1;
}

.sc-vehicle-request-body {
    padding: 20px 22px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sc-vehicle-request-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-vehicle-request-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8d8d93;
}

.sc-vehicle-request-input,
.sc-vehicle-request-textarea {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #2c2c30;
    border-radius: 8px;
    background: #1f1f22;
    color: #f3f3f4;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-vehicle-request-textarea {
    min-height: 72px;
    resize: vertical;
}

.sc-vehicle-request-input::placeholder,
.sc-vehicle-request-textarea::placeholder {
    color: #5b5b61;
}

.sc-vehicle-request-input:focus,
.sc-vehicle-request-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.sc-vehicle-request-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(213, 32, 32, 0.1);
    border: 1px solid rgba(213, 32, 32, 0.25);
    color: #f0b7b3;
    font-size: 13px;
    line-height: 1.45;
}

.sc-vehicle-request-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 22px 22px;
    border-top: 1px solid #232327;
}

.sc-vehicle-request-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sc-vehicle-request-btn--ghost {
    background: transparent;
    border-color: #2c2c30;
    color: #b8b8be;
}

.sc-vehicle-request-btn--ghost:hover {
    border-color: #46464b;
    color: #f3f3f4;
}

.sc-vehicle-request-btn--primary {
    background: var(--primary, #d52020);
    color: #fff;
    border-color: var(--primary, #d52020);
}

.sc-vehicle-request-btn--primary:hover {
    background: var(--primary-alt, #b81c1c);
    border-color: var(--primary-alt, #b81c1c);
    color: #fff;
}

.sc-vehicle-request-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Mobile bottom sheet */
@media (max-width: 991.98px) {
    .sc-vehicle-request-modal.sc-modal {
        align-items: flex-end;
        justify-content: flex-end;
        padding: 0;
    }

    .sc-vehicle-request-modal .sc-vehicle-request-dialog {
        max-width: 100%;
        opacity: 1;
        transform: translateY(100%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .sc-vehicle-request-modal.show:not(.sc-is-closing) .sc-vehicle-request-dialog {
        transform: translateY(0);
    }

    .sc-vehicle-request-modal.sc-is-closing .sc-vehicle-request-dialog {
        transform: translateY(100%);
        opacity: 1;
        transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1);
    }

    .sc-vehicle-request-content {
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        max-height: min(92dvh, 720px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .sc-vehicle-request-handle {
        display: block;
        width: 36px;
        height: 4px;
        margin: 8px auto 2px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        flex-shrink: 0;
    }

    .sc-vehicle-request-close {
        display: none;
    }

    .sc-vehicle-request-header {
        padding-top: 4px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .sc-vehicle-request-header .sc-vehicle-request-title {
        font-size: 18px;
        padding-right: 0;
    }

    .sc-vehicle-request-lead {
        padding-right: 0;
        font-size: 12px;
        line-height: 1.5;
    }

    .sc-vehicle-request-body {
        padding: 14px 16px 6px;
        gap: 12px;
    }

    .sc-vehicle-request-input,
    .sc-vehicle-request-textarea {
        padding: 10px 12px;
        font-size: 16px;
    }

    .sc-vehicle-request-textarea {
        min-height: 64px;
    }

    .sc-vehicle-request-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0));
        border-top: 1px solid #232327;
    }

    .sc-vehicle-request-btn--primary {
        width: 100%;
        min-height: 42px;
        font-size: 14px;
    }

    .sc-vehicle-request-btn--ghost {
        width: auto;
        align-self: center;
        min-height: 0;
        padding: 6px 8px;
        font-size: 13px;
        font-weight: 500;
        border: none;
        color: #8d8d93;
    }

    .sc-vehicle-request-btn--ghost:hover {
        border: none;
        color: #c8c8ce;
    }

    .sc-vehicle-request-trigger {
        width: 100%;
        margin-top: 12px;
        padding: 10px 12px;
        gap: 10px;
        border-radius: 8px;
    }

    .sc-vehicle-request-trigger__glyph {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .sc-vehicle-request-trigger__title {
        font-size: 13px;
    }

    .sc-vehicle-request-trigger__hint {
        font-size: 11px;
        line-height: 1.4;
    }
}

@media (min-width: 992px) {
    .sc-vehicle-request-close {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-vehicle-request-modal .sc-vehicle-request-dialog {
        transition: none;
    }
}
