/* =============== FORM MULTI-STEP INLINE + POPUP =============== */

/* Wrapper cho inline và popup */
#ob-form-container .form-container,
#ob-modal .form-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 24px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-align: left;
}

/* Tiêu đề */
#ob-form-container .form-container h2,
#ob-modal .form-container h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

/* Thanh tiến trình */
#ob-form-container .progress-bar,
#ob-modal .progress-bar {
    width: 100%;
    background: #e9ecef;
    border-radius: 5px;
    margin-bottom: 16px;
    height: 8px;
    overflow: hidden;
}

#ob-form-container .progress,
#ob-modal .progress {
    height: 8px;
    background: #0157FF;
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s;
}

/* Step ẩn/hiện */
#ob-form-container .step,
#ob-modal .step {
    display: none;
}
#ob-form-container .step.active,
#ob-modal .step.active {
    display: block;
}

/* Nút lựa chọn nhu cầu, thu nhập */
#ob-form-container .btn-option,
#ob-modal .btn-option {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #0157FF;
    border-radius: 6px;
    background: #ffffff;
    color: #0157FF;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.25s;
}
#ob-form-container .btn-option:hover,
#ob-modal .btn-option:hover,
#ob-form-container .btn-option.selected,
#ob-modal .btn-option.selected {
    background: #0157FF;
    color: #ffffff;
}

/* Input / field */
#ob-form-container input[type="text"],
#ob-form-container input[type="email"],
#ob-form-container input[type="tel"],
#ob-form-container input[type="number"],
#ob-modal input[type="text"],
#ob-modal input[type="email"],
#ob-modal input[type="tel"],
#ob-modal input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    margin-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Label */
#ob-form-container label,
#ob-modal label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-top: 8px;
}

/* Nút submit */
#ob-form-container .btn,
#ob-modal .btn {
    width: 100%;
    padding: 12px;
    background: #0157FF;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    transition: 0.25s;
}
#ob-form-container .btn:hover,
#ob-modal .btn:hover {
    background: #0046C0;
}

/* Thông báo thành công */
#ob-form-container .success-message,
#ob-modal .success-message {
    display: none;
    color: #16a34a;
    font-weight: 600;
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

/* Link điều khoản */
#ob-form-container .form-note,
#ob-modal .form-note {
    font-size: 13px;
    color: #555;
    margin-top: 12px;
    text-align: left;
}

/* =============== BUTTON LIÊN HỆ DÙNG CHUNG =============== */

.ob-open-btn {
    padding: 10px 18px;
    border-radius: 10px;
    background: #0157FF;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ob-open-btn:hover {
    background: #0046C0;
}

/* =============== MODAL POPUP =============== */

.ob-hidden {
    display: none;
}

#ob-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none; /* form.js sẽ set display:flex khi mở */
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

#ob-modal {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
    position: relative;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Nút đóng modal */
.ob-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #9ca3af;
}

/* Title / sub ở trên modal (nếu cần) */
#ob-modal-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}
#ob-modal-sub {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}
