/* Full-screen hero with centered glass card - dark theme, yellow accents, RTL */
.car-request-template-wrap {
    margin: 0;
    padding: 0;
}

/* Hero wrapper holds the full-screen background, transparent header and form */
.car-request-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    direction: rtl;
    background:
        linear-gradient(rgba(10,10,12,0.82), rgba(10,10,12,0.92)),
        url('../img/hero-bg.png') center / cover no-repeat fixed;
}

/* ---------- Transparent header ---------- */
.cr-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    direction: rtl;
}

.cr-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 22px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.cr-logo {
    color: #f4d35e;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.2px;
}

/* ---------- Header navigation menu ---------- */
.cr-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cr-menu-link {
    color: #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.cr-menu-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: #f4d35e;
    transition: width 0.25s ease;
}

.cr-menu-link:hover {
    color: #f4d35e;
}

.cr-menu-link:hover::after {
    width: 100%;
}

.cr-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cr-btn-ghost {
    color: #f4d35e;
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.cr-btn-ghost:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: #f4d35e;
}

.cr-btn-solid {
    color: #1a1a1c;
    background: #f4d35e;
    border: 1px solid #f4d35e;
}

.cr-btn-solid:hover {
    background: #e9c441;
    transform: translateY(-1px);
}

/* ---------- Hero intro text ---------- */
.cr-hero-text {
    width: 100%;
    max-width: 820px;
    text-align: center;
    margin-bottom: 20px;
    color: #f0f0f0;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.cr-hero-heading {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
}

.cr-hero-lead {
    color: #c9c9c9;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

body.rtl .car-request-container,
.car-request-container {
    direction: rtl;
    text-align: right;
    font-family: 'Tahoma', 'Arial', sans-serif;
    color: #f0f0f0;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 96px 20px 36px;
    background: transparent;
}

.car-request-card {
    width: 100%;
    max-width: 920px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    background: rgba(26, 26, 28, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 20px;
    padding: 40px 30px 40px 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

/* Custom scrollbar inside the form card - keep it off the rounded corners */
.car-request-card::-webkit-scrollbar {
    width: 16px;
}

.car-request-card::-webkit-scrollbar-track {
    background: transparent;
    margin: 16px 0;
}

.car-request-card::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    border: 5px solid transparent;
    background-clip: content-box;
}

.car-request-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.65);
    background-clip: content-box;
}

.car-request-card {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.4) rgba(255, 255, 255, 0.04);
}

.car-request-title {
    color: #f4d35e;
    text-align: center;
    font-size: 2.4rem;
    line-height: 1.3;
    margin: 0 0 10px;
    font-weight: 800;
}

.car-request-subtitle {
    text-align: center;
    color: #b5b5b5;
    margin: 0 0 32px;
    font-size: 1.05rem;
}

.car-request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Plate-type + origin in a single 4-column row on desktop with a divider */
.choice-row {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 22px;
}

.choice-row .form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.choice-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 215, 0, 0.22);
    flex: 0 0 auto;
}

.form-row .form-group {
    flex: 1;
    min-width: 220px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.choice-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.choice-pill {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    margin-bottom: 0;
    font-weight: 600;
    color: #e6e6e6;
}

.choice-pill:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.choice-pill input[type="radio"],
.choice-pill input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    accent-color: #f4d35e !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

.choice-pill:has(input:checked) {
    border-color: #f4d35e;
    background: rgba(255, 215, 0, 0.12);
    color: #f4d35e;
}

.choice-pill.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-group label {
    margin-bottom: 9px;
    color: #f4d35e;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-group select,
.form-group input {
    padding: 14px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #939393;
    border-radius: 12px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group select:hover,
.form-group input:hover {
    border-color: rgba(255, 215, 0, 0.35);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #f4d35e;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.range-inputs {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.range-inputs > span {
    padding-top: 12px;
}

.range-inputs input,
.range-inputs select {
    flex: 1;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.label-row label {
    margin-bottom: 0;
}

.calendar-badge {
    display: inline-block;
    background: #333;
    color: #f4d35e;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 6px;
}

.calendar-toggle {
    color: #aaa;
    font-weight: normal;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.calendar-toggle input {
    width: auto;
    accent-color: #f4d35e;
}

.price-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price-field .price-input {
    width: 100%;
    box-sizing: border-box;
}

.price-words {
    min-height: 18px;
    margin-top: 6px;
    font-size: 13px;
    color: #f4d35e;
}

.submit-btn {
    background: #f4d35e !important;
    color: #1a1a1c !important;
    padding: 16px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    margin-top: 6px !important;
    box-shadow: 0 10px 24px rgba(255, 215, 0, 0.22) !important;
    transition: all 0.25s ease !important;
}

.submit-btn:hover {
    background: #e9c441 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px rgba(255, 215, 0, 0.32) !important;
}

.car-request-success {
    background: #2e7d32;
    color: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
}

.car-request-error {
    background: #c62828;
    color: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
}

.car-request-auth {
    background: rgba(255, 215, 0, 0.1);
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    color: #f4d35e;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.car-request-auth-text {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    color: #ffe98a;
}

.car-request-auth-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cr-btn-outline {
    color: #f4d35e !important;
    background: transparent !important;
    border: 1.5px solid rgba(255, 215, 0, 0.6) !important;
}

.cr-btn-outline:hover {
    background: rgba(255, 215, 0, 0.15) !important;
}

.admin-link {
    text-align: center;
    margin-top: 20px;
}

.admin-link a {
    color: #f4d35e;
}

/* ---------- Location builder (province / cities) ---------- */
.location-section {
    border-top: 1px solid rgba(255, 215, 0, 0.18);
    padding-top: 20px;
}

.location-hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: #b5b5b5;
    line-height: 1.6;
}

.location-builder {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-builder-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.loc-field {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.loc-field > label {
    margin-bottom: 9px;
    color: #f4d35e;
    font-weight: 700;
    font-size: 14px;
}

.loc-mode-group {
    gap: 10px;
}

.loc-mode-group .choice-pill {
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
}

.loc-cities-wrap {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.loc-cities-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.loc-cities-label {
    color: #f4d35e;
    font-weight: 700;
    font-size: 14px;
    margin-left: auto;
}

.loc-mini-btn {
    background: rgba(255, 215, 0, 0.12) !important;
    color: #f4d35e !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, border-color 0.2s !important;
    font-family: inherit !important;
    width: auto !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.loc-mini-btn:hover {
    background: rgba(255, 215, 0, 0.22) !important;
    border-color: #f4d35e !important;
}

.loc-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.loc-city-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #e6e6e6;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.loc-city-pill:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.loc-city-pill input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #f4d35e !important;
    cursor: pointer !important;
}

.loc-city-pill:has(input:checked) {
    border-color: #f4d35e;
    background: rgba(255, 215, 0, 0.12);
    color: #f4d35e;
}

.loc-add-btn {
    align-self: flex-start !important;
    background: rgba(255, 215, 0, 0.14) !important;
    color: #f4d35e !important;
    border: 1.5px solid rgba(255, 215, 0, 0.5) !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    font-family: inherit !important;
    width: auto !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.loc-add-btn:hover {
    background: rgba(255, 215, 0, 0.24) !important;
    transform: translateY(-1px) !important;
}

.loc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #f4d35e;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    max-width: 100%;
}

.loc-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.5;
}

.loc-chip-remove {
    background: rgba(244, 211, 94, 0.25) !important;
    color: #f4d35e !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.loc-chip-remove:hover {
    background: #f4d35e !important;
    color: #1a1a1c !important;
}

.loc-empty {
    margin: 12px 0 0;
    font-size: 13px;
    color: #888;
}

/* Responsive - tablet */
@media (max-width: 768px) {
    .cr-header-inner {
        padding: 16px 22px;
    }
    .cr-logo {
        font-size: 1.1rem;
    }
    .cr-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    .cr-hero-heading {
        font-size: 1.9rem;
    }
    .car-request-container {
        padding: 96px 20px 28px;
    }
    .car-request-card {
        padding: 28px 22px;
        max-height: calc(100vh - 190px);
    }
    .car-request-title {
        font-size: 1.9rem;
    }
    .form-row {
        flex-direction: column;
        gap: 18px;
    }
    .form-row .form-group {
        min-width: 0;
    }
}

/* Responsive - mobile */
@media (max-width: 480px) {
    /* On small screens, allow natural page scroll instead of locking to viewport */
    .car-request-hero {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        background-attachment: scroll;
    }
    .cr-header {
        position: relative;
    }
    .cr-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }
    .cr-nav {
        justify-content: center;
    }
    .cr-hero-heading {
        font-size: 1.6rem;
    }
    .cr-hero-lead {
        font-size: 0.98rem;
    }
    .car-request-container {
        height: auto;
        min-height: auto;
        padding: 24px 14px 40px;
        background-attachment: scroll;
    }
    .car-request-card {
        max-height: none;
        overflow: visible;
        padding: 26px 18px;
        border-radius: 16px;
    }
    .car-request-title {
        font-size: 1.6rem;
    }
    .choice-pill {
        min-width: 0;
        flex: 1 1 100%;
    }
    .range-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    .range-inputs > span {
        padding-top: 0;
        text-align: center;
        color: #888;
    }
    .label-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .location-builder-row {
        flex-direction: column;
        gap: 16px;
    }
    .loc-field {
        min-width: 0;
    }
    .loc-cities {
        max-height: 180px;
    }
}
