/* ========================================================
   NOXH Popup & Form Styles
   Extracted from inline JS styles (common.js, form_all.js, check_condiction_noxh.js)
   ======================================================== */

/* --- Spinner animation --- */
@keyframes noxh-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.noxh-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: noxh-spin .6s linear infinite;
}

/* --- Popup overlay (shared by register & check popups) --- */
.noxh-popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    align-items: center;
    justify-content: center;
}

/* --- Popup card container --- */
.noxh-popup-card {
    background: #fff;
    padding: 24px 20px 20px 20px;
    border-radius: 16px;
    max-width: 340px;
    width: 90%;
    margin: auto;
    position: relative;
    top: 8vh;
    box-shadow: 0 4px 32px rgba(0,0,0,0.15);
}

/* --- Close button --- */
.noxh-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

/* --- Popup title --- */
.noxh-popup-title {
    text-align: center;
    margin-bottom: 18px;
    color: #1767b2;
    font-size: 18px;
    font-weight: 700;
}

/* --- Input (pill shape) --- */
.noxh-inp-pill {
    width: 100%;
    border-radius: 24px;
    border: 1px solid #d0d0d0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}
.noxh-inp-pill::-moz-placeholder {
    font-weight: 600;
    color: #555;
}
.noxh-inp-pill::placeholder {
    font-weight: 600;
    color: #555;
}

/* --- Select (pill shape) --- */
.noxh-select-pill {
    width: 100%;
    border-radius: 24px;
    border: 1px solid #d0d0d0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    background: #fff;
    box-sizing: border-box;
    display: block;
}

/* --- Textarea variant --- */
.noxh-inp-pill.is-textarea {
    border-radius: 12px;
    height: 90px;
    resize: none;
}

/* --- Submit button --- */
.noxh-submit-btn {
    width: 100%;
    background: #1767b2;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
}

/* --- Check submit button (with icon) --- */
.noxh-check-btn {
    width: 100%;
    background: #1767b2;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Validation error --- */
.invalid-feedback {
    color: #dc3545;
    font-size: 13px;
}
.dd-error {
    color: #dc3545;
    font-size: 13px;
    padding: 2px 4px;
}

/* --- Result display (success/error) --- */
.noxh-result-wrap {
    text-align: center;
    padding: 20px 0 10px;
}
.noxh-result-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.noxh-result-icon.success {
    background: #1767b2;
}
.noxh-result-icon.error {
    background: #dc3545;
}
.noxh-result-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.4;
}
.noxh-result-title.success {
    color: #1767b2;
}
.noxh-result-title.error {
    color: #dc3545;
}
.noxh-result-text {
    color: #555;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}
.noxh-result-link {
    color: #555;
    font-size: 14px;
    text-decoration: none;
}

/* ===== Custom Dropdown (common.js) ===== */
.noxh-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    font-family: inherit;
}
.noxh-dd-trigger {
    width: 100%;
    border-radius: 24px;
    border: 1px solid #d0d0d0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}
.noxh-dd-label {
    color: #555;
    font-weight: 600;
}
.noxh-dd-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 99999;
    overflow: hidden;
    display: none;
    max-height: 260px;
    overflow-y: auto;
}
.noxh-opt {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
}
.noxh-opt:hover {
    background: #f0f5ff;
}

/* ===== Action Buttons (NOXH common.js) ===== */
.noxh-action-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    align-items: center;
}
.noxh-btn-primary {
    cursor: pointer;
    background: #1d4ed8;
    color: #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(29,78,216,0.3);
}
.noxh-btn-outline {
    cursor: pointer;
    background: #fff;
    color: #374151;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d1d5db;
    white-space: nowrap;
    text-decoration: none;
}
.noxh-btn-compare {
    cursor: pointer;
    background: #f0f5ff;
    color: #1d4ed8;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
    text-decoration: none;
}

/* ===== CHTM Action Buttons (common.js) ===== */
.chtm-action-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.chtm-btn-compare {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f5f8ff;
    border: 1px solid #e0e7ff;
    color: #2340b0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.chtm-btn-loan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.chtm-btn-loan img {
    -o-object-fit: contain;
       object-fit: contain;
}
.chtm-btn-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

/* ===== Dat nen Action Buttons (common.js) ===== */
.datnen-action-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    align-items: center;
}
.datnen-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f5f8ff;
    border: 1px solid #e0e7ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.datnen-btn-primary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #1d4ed8;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(29,78,216,0.3);
}

/* ===== Purpose radio group (otherFill) ===== */
.noxh-purpose-group {
    margin-bottom: 12px;
}
.noxh-purpose-group .noxh-purpose-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.noxh-purpose-group .noxh-purpose-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.noxh-purpose-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ===== Success message links (datnen) ===== */
.noxh-success-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.noxh-success-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f5f8ff;
    border: 1px solid #e0e7ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* ===== Tienich extra margin ===== */
.tienich-extra {
    margin-top: 10px;
    margin-bottom: 10px;
}

