/* ============================
   Shared Inquiry Modal
   ============================ */

.inq-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.inq-modal.open { display: flex; }

.inq-inner {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
    animation: inqFadeIn .2s ease;
}
@keyframes inqFadeIn {
    from { opacity:0; transform: scale(.96) translateY(8px); }
    to   { opacity:1; transform: scale(1)  translateY(0); }
}

.inq-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,.07);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .15s, color .15s;
    font-family: Arial, sans-serif;
}
.inq-close:hover { background: #111; color: #fff; }

/* Header (with or without vehicle) */
.inq-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.inq-header-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0 0 4px;
    padding-right: 30px;
}
.inq-header-sub {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* Vehicle Card Header (reused from detail page) */
.inq-vcard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.inq-vcard-img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    flex-shrink: 0;
}
.inq-vcard-info { min-width: 0; }
.inq-vcard-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inq-vcard-meta {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

/* Tabs */
.inq-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 28px;
}
.inq-tab {
    padding: 12px 18px;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color .15s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.inq-tab:hover { color: #555; }
.inq-tab.active { color: #111; }
.inq-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #111;
}
.inq-tab i { font-size: 14px; }

/* Panels */
.inq-panel { display: none; padding: 24px 28px 28px; }
.inq-panel.active { display: block; }

.inq-form-group { margin-bottom: 16px; }

.inq-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.inq-input, .inq-textarea, .inq-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: #111;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.inq-input:focus, .inq-textarea:focus, .inq-select:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
    background: #fff;
}
.inq-textarea { min-height: 100px; resize: vertical; }

.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inq-row-3 { grid-template-columns: auto 1fr 1fr; }

/* Time Buttons */
.inq-time-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.inq-time-btn {
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .15s;
}
.inq-time-btn:hover { border-color: #999; color: #111; }
.inq-time-btn.active { border-color: #111; background: #111; color: #fff; }

.inq-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.inq-privacy {
    font-size: 11px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 20px;
}
.inq-privacy a { color: #111; text-decoration: underline; }

.inq-submit {
    width: 100%;
    padding: 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s, transform .12s;
}
.inq-submit:hover { background: #333; transform: translateY(-1px); }

/* Phone tab */
.inq-phone-big {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 14px;
    margin-bottom: 16px;
}
.inq-phone-icon {
    width: 48px;
    height: 48px;
    background: #111;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.inq-phone-icon i { color: #fff; font-size: 18px; }
.inq-phone-num { font-size: 22px; font-weight: 800; color: #111; }
.inq-phone-label { font-size: 12px; color: #999; font-weight: 600; }

.inq-ref {
    font-size: 12px;
    color: #999;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 600px) {
    .inq-inner { border-radius: 16px; }
    .inq-panel { padding: 20px; }
    .inq-tabs { padding: 0 16px; }
    .inq-header { padding: 20px 20px 14px; }
    .inq-row, .inq-row-3 { grid-template-columns: 1fr; }
    .inq-tab { padding: 10px 12px; font-size: 12px; }
    .inq-vcard { padding: 16px 20px; }
}
