/* ============================================================
   RIDE ANYWHERE, ANYTIME — Enhanced Slider Section (ra2)
   + Inquiry Popup Modal
   ============================================================ */

/* ——— Section ——— */
.ra2-section {
    background: linear-gradient(160deg, #f0f4ff 0%, #e8f0fe 50%, #dbeafe 100%);
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}
.ra2-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='30' cy='30' r='2' fill='%231565c0' fill-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ——— Head ——— */
.ra2-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.ra2-head-left { flex: 1; min-width: 0; }
.ra2-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.ra2-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1565c0;
    background: rgba(21, 101, 192, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.ra2-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.ra2-intro {
    font-size: 15px;
    color: #475569;
    margin: 0;
    max-width: 540px;
    line-height: 1.6;
}

/* ——— Tabs ——— */
.ra2-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ra2-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255,255,255,0.7);
    color: #475569;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.ra2-tab:hover { background: #fff; color: #1f2937; border-color: #cbd5e1; }
.ra2-tab.is-active {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
    box-shadow: 0 4px 14px rgba(21,101,192,0.3);
}

/* ——— Slider arrows ——— */
.ra2-arrows {
    display: flex;
    gap: 8px;
}
.ra2-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(21,101,192,0.25);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    color: #1565c0;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(21,101,192,0.1);
}
.ra2-arrow-btn:hover {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
    box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}

/* ——— Panel ——— */
.ra2-panel[hidden] { display: none; }

/* ——— Slider wrapper (clips overflow) ——— */
.ra2-slider-wrap {
    position: relative;
    overflow: hidden;
    /* fade edges */
    mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
    padding: 6px 0 12px;
}

/* ——— Track ——— */
.ra2-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 2px 10px 10px;
}
.ra2-track::-webkit-scrollbar { display: none; }

/* ——— Card ——— */
.ra2-card {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    display: block;
    /* 4 visible + gap */
    flex: 0 0 calc(25% - 15px);
    min-width: 200px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(15,42,90,0.08);
    scroll-snap-align: start;
}
.ra2-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(15,42,90,0.16);
}

/* Card image */
.ra2-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.ra2-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.ra2-card:hover .ra2-card-img img { transform: scale(1.08); }

/* Overlay */
.ra2-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(10,20,60,0.5) 75%, rgba(10,20,60,0.75) 100%);
}

/* Badge top-left */
.ra2-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* CTA bottom-right on hover */
.ra2-card-cta {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f97316;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.ra2-card:hover .ra2-card-cta { opacity: 1; transform: translateY(0); }

/* Card body */
.ra2-card-body {
    padding: 12px 14px 14px;
    background: #fff;
    border-radius: 0 0 16px 16px;
}
.ra2-card-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 2px;
}
.ra2-card-sub {
    display: block;
    font-size: 12px;
    color: #1565c0;
    font-weight: 600;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
    .ra2-card { flex: 0 0 calc(33.33% - 14px); }
}
@media (max-width: 768px) {
    .ra2-head { flex-direction: column; gap: 16px; }
    .ra2-head-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
    .ra2-title { font-size: 26px; }
    .ra2-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 480px) {
    .ra2-section { padding: 40px 0 50px; }
    .ra2-title { font-size: 23px; }
    .ra2-intro { font-size: 14px; }
    .ra2-head-right { gap: 10px; }
    .ra2-card { flex: 0 0 calc(50% - 8px); min-width: 160px; }
    .ra2-track { gap: 14px; }
    .ra2-card-name { font-size: 13px; }
}

/* ============================================================
   INQUIRY POPUP MODAL
   ============================================================ */
.ra-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 20, 60, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.ra-modal-overlay.is-open { opacity: 1; }

.ra-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
    box-shadow: 0 30px 80px rgba(15,42,90,0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
.ra-modal-overlay.is-open .ra-modal-box { transform: translateY(0) scale(1); }

.ra-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #64748b;
    transition: background 0.2s, color 0.2s;
}
.ra-modal-close:hover { background: #e2e8f0; color: #1f2937; }

.ra-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-right: 36px;
}
.ra-modal-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1565c0, #1e3a8a);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.ra-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.25;
}
.ra-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Form */
.ra-modal-form { display: flex; flex-direction: column; gap: 14px; }
.ra-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ra-form-group { display: flex; flex-direction: column; gap: 5px; }
.ra-form-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.02em;
}
.ra-form-label span { color: #ef4444; }
.ra-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #f8fafc;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.ra-form-input:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
    background: #fff;
}
.ra-form-textarea { resize: vertical; min-height: 68px; }

.ra-modal-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 4px;
}
.ra-modal-submit-btn:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }
.ra-modal-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ra-modal-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
}

/* Success state */
.ra-modal-success {
    text-align: center;
    padding: 20px 10px 10px;
}
.ra-modal-success-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    margin: 0 auto 16px;
}
.ra-modal-success h4 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.ra-modal-success p {
    font-size: 14px;
    color: #475569;
    margin: 0 0 20px;
}

@media (max-width: 540px) {
    .ra-modal-box { padding: 22px 18px 20px; }
    .ra-form-row { grid-template-columns: 1fr; }
    .ra-modal-title { font-size: 18px; }
}
