/* ========== FORM LABELS & INPUTS ========== */
.f-label {
    display: block; font-size: 11px; font-weight: 700;
    color: #64748b; text-transform: uppercase;
    letter-spacing: .07em; margin-bottom: 6px;
}
.f-req { color: #f97316; }
.f-note { font-size: 11px; color: #94a3b8; font-weight: 400; text-transform: none; letter-spacing: 0; }

.f-input {
    width: 100%; background: #fff;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    padding: 11px 14px; font-size: 14px; color: #0f172a;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.f-input::placeholder { color: #94a3b8; }
.f-input:focus {
    outline: none; border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.f-input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
select.f-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    background-size: 14px; padding-right: 30px; cursor: pointer;
}

/* ========== SECTION CARD ========== */
.form-card {
    background: #fff; border: 1.5px solid #e2e8f0;
    border-radius: 18px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.form-card-head {
    padding: 18px 24px; border-bottom: 1.5px solid #f1f5f9;
    display: flex; align-items: center; gap: 12px;
}
.form-card-body { padding: 24px; }

/* ========== VEHICLE CARDS ========== */
.v-card { border: 1.5px solid #e2e8f0; border-radius: 13px; overflow: hidden; background: #fff; }
.v-card-head {
    background: #f8fafc; border-bottom: 1.5px solid #e2e8f0;
    padding: 10px 16px; display: flex; align-items: center; gap: 10px;
}
.v-card-body { padding: 16px; }
.v-trailer-head {
    border-top: 1.5px solid #f1f5f9; background: #fbfcfd;
    padding: 8px 16px; display: flex; align-items: center; gap: 8px;
}
.v-trailer-body { background: #fbfcfd; padding: 12px 16px; }

/* ========== ADD / REMOVE BUTTONS ========== */
.add-btn {
    width: 100%; padding: 12px 16px;
    border: 2px dashed #cbd5e1; border-radius: 12px;
    background: transparent; color: #64748b;
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif;
}
.add-btn:hover { border-color: #f97316; color: #f97316; background: #fff7ed; }

.remove-btn {
    margin-left: auto; width: 26px; height: 26px; border-radius: 7px;
    background: #fef2f2; border: 1px solid #fecaca; color: #ef4444;
    font-size: 11px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.remove-btn:hover { background: #fee2e2; }

/* ========== SIGNATURE ========== */
.sig-input {
    width: 100%; background: #f8fafc;
    border: 2px dashed #cbd5e1; border-radius: 12px;
    padding: 16px 20px; font-size: 20px; font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #0f172a; text-align: center; transition: all .2s;
}
.sig-input:focus {
    outline: none; border-color: #f97316; border-style: solid;
    box-shadow: 0 0 0 3px rgba(249,115,22,.1); background: #fff;
}
.sig-input::placeholder { color: #cbd5e1; }
.sig-input.invalid { border-color: #ef4444 !important; border-style: solid; }

/* ========== AGREEMENT CHECKBOX ========== */
#agree-terms { width: 18px; height: 18px; accent-color: #f97316; cursor: pointer; flex-shrink: 0; }

/* ========== TERMS MODAL ========== */
#terms-modal {
    display: none; position: fixed; inset: 0; z-index: 100;
    align-items: center; justify-content: center; padding: 16px;
}
#terms-modal.open { display: flex; }

.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-card {
    position: relative; z-index: 1;
    background: #fff; border-radius: 20px;
    width: 100%; max-width: 680px;
    max-height: 88vh; display: flex; flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    animation: modalIn .25s cubic-bezier(.34,1.4,.64,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.94) translateY(12px); }
    to   { opacity: 1; transform: none; }
}
.modal-body {
    overflow-y: auto; flex: 1; padding: 24px;
    scrollbar-width: thin; scrollbar-color: #f97316 #f1f5f9;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: #f1f5f9; }
.modal-body::-webkit-scrollbar-thumb { background: #f97316; border-radius: 4px; }

/* Rules grid — 1 col mobile, 2 col desktop */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .rules-grid { grid-template-columns: repeat(2, 1fr); }
    .rules-grid .modal-rule-item:nth-last-child(-n+2) { border-bottom: none; }
}

.modal-rule-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 4px; border-bottom: 1px solid #f1f5f9;
    font-size: 13px; color: #475569;
}
.modal-rule-item:last-child { border-bottom: none; }

/* ========== SUCCESS ========== */
@keyframes scaleIn {
    from { transform: scale(.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.success-icon { animation: scaleIn .45s cubic-bezier(.34,1.56,.64,1) both; }
