/* ============================================================
   ODc_754.css – OnDash³'7s Unified Styles v7.54
   © PayBridge (Pty) Ltd 2026
   ============================================================ */

/* ===== GLOBAL ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: #0B0E14;
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.onboarding-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}
.onboarding-card {
    background: #141A24;
    border: 1px solid #2A3344;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
}
.banner {
    background: #0B1C2C;
    padding: 1.8rem 2.5rem;
    border-bottom: 3px solid #D4AF37;
}
.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.banner .tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.app-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: none;
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}
.app-title .treasure { color: #00FFCC; }
.app-title .trail { color: #FF69B4; }
.app-title .tm {
    font-size: 0.4em;
    vertical-align: super;
    color: #D4AF37;
    margin-left: 0.05em;
    font-style: normal;
    font-weight: 500;
}
.form-content {
    padding: 2rem 2.5rem 2.5rem;
    color: #E0E0E0;
}
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #D4AF37;
    border-bottom: 2px solid #2A3344;
    padding-bottom: 0.5rem;
    margin: 1.5rem 0 1rem;
    font-family: 'Poppins', sans-serif;
}
.form-group { margin-bottom: 1rem; }
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 200px; }
label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #8A94A6;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}
label .required { color: #FF6B6B; }
input, select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #2A3344;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: 0.2s;
    background: #0B0E14;
    color: #E0E0E0;
    font-family: 'Poppins', sans-serif;
}
input:focus, select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}
input::placeholder, select::placeholder { color: #6A7A8A; }
small {
    color: #8A94A6;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.2rem;
    font-family: 'Poppins', sans-serif;
}
.phone-with-prefix {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.phone-prefix {
    background: #1F2937;
    padding: 0.65rem 0.8rem;
    border-radius: 10px 0 0 10px;
    font-weight: 500;
    color: #E0E0E0;
    border: 1px solid #2A3344;
    border-right: none;
    white-space: nowrap;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}
.phone-with-prefix input {
    border-radius: 0 10px 10px 0;
    flex: 1;
}
.password-field { position: relative; }
.password-toggle {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}
.password-toggle:hover { color: rgba(255,255,255,0.7); }
.password-toggle:active { color: #D4AF37; }
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.checkbox-group input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #D4AF37;
    margin-top: 0.1rem;
    flex-shrink: 0;
    background: #0B0E14;
}
.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.95rem;
    color: #E0E0E0;
    font-family: 'Poppins', sans-serif;
}
.checkbox-group label .legal-note {
    font-weight: 600;
    color: #FF6B6B;
}
.checkbox-group label a {
    color: #D4AF37;
    text-decoration: none;
}
.checkbox-group label a:hover { text-decoration: underline; }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #2A3344;
}
button {
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}
#submitBtn {
    background: #D4AF37;
    color: #0B0E14;
}
#submitBtn:hover { background: #C49A2A; }
#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-reset {
    background: #2A3344;
    color: #8A94A6;
}
.btn-reset:hover { background: #3A4A5A; }
.result-message {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
}
.result-message.success {
    background: #1A3A2A;
    color: #00FFCC;
    border: 1px solid #00FFCC;
}
.result-message.error {
    background: #3A1A1A;
    color: #FF6B6B;
    border: 1px solid #FF6B6B;
}
.result-message.info {
    background: #1A2A3A;
    color: #5A8ABA;
    border: 1px solid #5A8ABA;
}
.verify-panel {
    background: #1F2937;
    padding: 1.2rem;
    border-radius: 16px;
    margin: 1rem 0;
    border: 1px solid #2A3344;
}
.verify-panel .form-group { margin-bottom: 0.5rem; }
.verify-panel label { color: #8A94A6; }
.verify-panel input { background: #0B0E14; }
.verify-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.verify-btn {
    background: #2A3344;
    color: #D4AF37;
    padding: 0.5rem 1.5rem;
    border: 1px solid #2A3344;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
}
.verify-btn:hover:not(:disabled) {
    background: #3A4A5A;
    border-color: #D4AF37;
}
.verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pin-status {
    margin-top: 0.5rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}
.pin-status.success { color: #00FFCC; }
.pin-status.error { color: #FF6B6B; }
.pluscode-display {
    background: #0B0E14;
    border: 1px solid #2A3344;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
}
.pluscode-display .label {
    color: #8A94A6;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}
.pluscode-display .value {
    color: #D4AF37;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Inconsolata', monospace;
}
.pluscode-display .value-preview {
    color: #00FFCC;
    font-weight: 700;
    font-size: 1.1rem;
}
.summary-box {
    background: #0B0E14;
    border: 2px solid #00FFCC;
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1rem;
}
.summary-box .summary-label {
    color: #8A94A6;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}
.summary-box .summary-value {
    color: #00FFCC;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Inconsolata', monospace;
    word-break: break-all;
}
.summary-box .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid #2A3344;
}
.summary-box .summary-row:last-child { border-bottom: none; }
.geocode-spinner {
    display: none;
    margin-top: 0.5rem;
    color: #D4AF37;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}
.geocode-spinner.active { display: block; }
.footer {
    margin-top: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: #4A5A6A;
}
.footer .gold { color: #D4AF37; font-weight: 900; }
.footer .copy { font-weight: 400; color: #4A5A6A; }
.debug-log-panel {
    margin-top: 1.5rem;
    border-top: 1px solid #2A3344;
    padding-top: 1rem;
}
.debug-log-panel .log-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.debug-log-panel .log-controls button {
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
}
.debug-log-panel .log-container {
    display: none;
    background: #0B0E14;
    border: 1px solid #2A3344;
    border-radius: 8px;
    padding: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 0.5rem;
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #8A94A6;
}
.debug-log-panel .log-container.show { display: block; }

/* ===== TIER CARDS (clickable) ===== */
.tier-card {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #2A3344;
    background: #1F2937;
    color: #8A94A6;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.tier-card:hover {
    background: #2A3344;
}
.tier-card.active {
    border-color: #D4AF37 !important;
    background: #2A3344 !important;
    color: #D4AF37 !important;
}
.tier-card[data-tier="21+"] {
    border-color: #FF6B6B;
    color: #FF6B6B;
}
.tier-card[data-tier="21+"].active {
    border-color: #FF6B6B !important;
    color: #FF6B6B !important;
    background: #2A1A1A !important;
}

/* ===== EXTENSION FIELD WIDTH FIX ===== */
input[name="extension"] {
    max-width: 180px;
}

/* ===== QLICKANLAW™ MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* lighter overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.modal-content {
    background: #141A24;
    border: 2px solid #D4AF37;
    border-radius: 16px;
    max-width: 1000px;      /* wider */
    width: 95%;
    max-height: 92vh;       /* taller */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    color: #E0E0E0;
    font-family: 'Poppins', sans-serif;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #2A3344;
}
.modal-header h2 {
    color: #D4AF37;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    color: #8A94A6;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.5rem;
}
.modal-close:hover { color: #FF6B6B; }
.modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
}
.modal-qa-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2A3344;
    padding-bottom: 0.75rem;
}
.qa-btn {
    background: #1F2937;
    border: 1px solid #2A3344;
    color: #8A94A6;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;    /* smaller */
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
}
.qa-btn:hover {
    background: #2A3344;
    border-color: #D4AF37;
    color: #D4AF37;
}
.modal-text-panel {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.75rem;
    font-size: 0.85rem;    /* smaller text */
    line-height: 1.6;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* cleaner body font */
}
.modal-text-panel .clause {
    margin-bottom: 1.2rem;
    padding: 0.5rem;
    border-left: 3px solid transparent;
    transition: background 0.3s;
}
.modal-text-panel .clause .clause-id {
    font-weight: 700;
    color: #D4AF37;
    display: block;
    margin-bottom: 0.2rem;
}
.modal-text-panel .clause .clause-text {
    white-space: pre-wrap;
    font-weight: 400;
}
.modal-text-panel .clause.highlight {
    background: rgba(212, 175, 55, 0.15);
    border-left-color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 2px solid #2A3344;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.modal-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-checkbox-group input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #D4AF37;
}
.modal-checkbox-group label {
    color: #E0E0E0;
    font-size: 0.9rem;
    margin: 0;
}
#modalAcceptBtn {
    background: #D4AF37;
    color: #0B0E14;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}
#modalAcceptBtn:hover { background: #C49A2A; }
#modalAcceptBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .banner { padding: 1rem 1.5rem; }
    .form-content { padding: 1.5rem; }
    .app-title { font-size: 1.3rem; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-group { min-width: unset; }
    .form-actions { flex-direction: column; align-items: stretch; }
    button { width: 100%; }
    .password-toggle { font-size: 0.65rem; }
    .phone-with-prefix { flex-wrap: wrap; }
    .phone-prefix { border-radius: 10px; border-right: 1px solid #2A3344; }
    .phone-with-prefix input { border-radius: 10px; }
    .banner .tagline { font-size: 0.75rem; }
    .modal-content { max-height: 95vh; }
    .modal-body { padding: 0.5rem 1rem; }
    .modal-footer { flex-direction: column; align-items: stretch; }
    .modal-checkbox-group { justify-content: center; }
}
