.form-tab .form-group {
    margin-bottom: 1rem;
}
.pass-field-wrapper {
    position: relative;
}
.pass-field-wrapper .form-control {
    padding-right: 2.5rem;
}
.pass-toggle {
    position: absolute;
    right: 0.75rem;
    top: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #999;
    font-size: 1.8rem;
    line-height: 1;
}
.pass-toggle:focus { outline: none; }
.pass-toggle:hover { color: #333; }

.text-danger p {
    color: #dc3545 !important;
}

/* Sponsor option toggle */
.sponsor-option-toggle {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.sponsor-option-toggle input[type="radio"] { display: none; }
.sponsor-option-toggle label {
    flex: 1;
    padding: 9px 12px;
    text-align: center;
    cursor: pointer;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    background: #f5f5f5;
    color: #555;
    border-right: 1px solid #ccc;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
    user-select: none;
}
.sponsor-option-toggle label:last-of-type { border-right: none; }
.sponsor-option-toggle input[type="radio"]:checked + label {
    background: #336791;
    color: #fff;
}
.sponsor-option-toggle.locked {
    opacity: 0.78;
    pointer-events: none;
}

#loginRegisterForm label, #loginForm label {
    margin: 0;
}

.sponsor-option-toggle label i {
    font-size: 1.3rem;
    margin-right: 5px;
    vertical-align: middle;
}

/* ── Vendor / Dealer registration section ─────────────────────────────── */
.vendor-reg-section { margin-top: 1.8rem; }

.vendor-reg-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.4rem;
    color: #666;
    font-size: 1.15rem;
    font-weight: 600;
}
.vendor-reg-divider::before,
.vendor-reg-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.vendor-reg-divider span { padding: 0 12px; white-space: nowrap; }

/* ── Map picker ────────────────────────────────────────────────────────── */
.map-search-wrap {
    position: relative;
    margin-bottom: 8px;
}
.map-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.5rem;
    pointer-events: none;
}
.map-search-wrap .form-control {
    padding-left: 2.6rem;
}
#map-search-results {
    position: absolute;
    top: calc(100% + 3px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    max-height: 180px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}
.map-search-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}
.map-search-item:last-child { border-bottom: none; }
.map-search-item:hover { background: #f5f7ff; }

#reg-map {
    height: 260px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    z-index: 1;
}

/* ── Image upload row (matches product/product-category pattern) ────────── */
.img-upload-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    padding: 10px;
}
.img-preview-box {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 8px;
    border: 1.5px dashed #c8cfd6;
    background: #eef0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.img-preview-box > i {
    font-size: 24px;
    color: #b0b8c4;
}
.img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.img-upload-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.img-file-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-choose-img {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    color: #495057;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
    margin-bottom: 0;
}
.btn-choose-img:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
.btn-choose-img i { font-size: 14px; color: #6c757d; }
.chosen-filename {
    font-size: 12px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hidden-file-input { display: none; }

/* ── Current location checkbox ─────────────────────────────────────────── */
.location-check-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #d0d9ff;
    border-radius: 8px;
    background: #f5f7ff;
    cursor: pointer;
}
.location-check-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #4e73df;
}
.location-check-wrap span {
    font-size: 1.2rem;
    color: #333;
    user-select: none;
}
.location-check-wrap span i {
    color: #4e73df;
    margin-right: 4px;
    font-size: 1.4rem;
    vertical-align: middle;
}

/* ── Delivery option label + error ──────────────────────────────────────── */
.reg-delivery-opt-label {
    font-size: 1.3rem;
    font-weight: 600;
}

.reg-delivery-opt-error-msg {
    display: none;
    margin-top: 6px;
}

/* ── Delivery option cards ───────────────────────────────────────────────── */
/* Molla uses 10px base — use px to match 1.4rem (14px) form standard */
.delivery-opt-icon  { font-size: 26px; }
.delivery-opt-title { font-size: 14px; }
.delivery-opt-desc  { font-size: 12px; }

.delivery-opt-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.delivery-opt-card {
    cursor: pointer;
    margin: 0;
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
}

.delivery-opt-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.delivery-opt-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #e0e5f0;
    border-radius: 10px;
    padding: 18px 14px 14px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    user-select: none;
}

.delivery-opt-icon {
    font-size: 2.8rem;
    color: #c0c8d8;
    display: block;
    transition: color 0.2s;
}

.delivery-opt-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.delivery-opt-desc {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.3;
    flex: 1;
}

.delivery-opt-radio {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.2s;
    margin-top: 2px;
}

.delivery-opt-card input[type="checkbox"]:checked + .delivery-opt-body {
    border-color: #6f42c1;
    box-shadow: 0 0 0 1px #6f42c1;
}

.delivery-opt-card input[type="checkbox"]:checked + .delivery-opt-body .delivery-opt-icon {
    color: #6f42c1;
}

.delivery-opt-card input[type="checkbox"]:checked + .delivery-opt-body .delivery-opt-radio {
    background: #6f42c1;
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}
