/* forms.css — Form groups, inputs, selects, onboarding forms, and auth styles */

.form-group {
    margin-bottom: 16px
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg2);
    color: var(--text);
    transition: border .12s
}

.form-input:focus {
    outline: none;
    border-color: var(--accent)
}

textarea.form-input {
    min-height: 100px;
    resize: vertical
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a8fa2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center
}

/* Onboarding */
.onboarding-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; }
.ob-container { max-width: 480px; width: 100%; margin: 0 auto; }
.ob-container.ob-wide { max-width: 840px; }
.ob-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.ob-logo { width: 36px; height: 36px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: white; }
.ob-logo-text { font-size: 15px; font-weight: 600; color: var(--text2); }
.ob-title { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 6px; text-align: center; }
.ob-subtitle { font-size: 14px; color: var(--text3); margin-bottom: 28px; text-align: center; }
.ob-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.ob-tab { flex: 1; padding: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; transition: all 0.2s; }
.ob-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ob-form-group { margin-bottom: 16px; }
.ob-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.ob-input { width: 100%; padding: 12px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--text); box-sizing: border-box; outline: none; }
.ob-input:focus { border-color: var(--accent); }
.ob-input::placeholder { color: var(--text3); }
.ob-btn-primary { width: 100%; padding: 13px; background: var(--accent); color: white; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ob-btn-primary:hover { background: var(--accent2); }
.ob-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.ob-btn-google { width: 100%; padding: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ob-btn-google:hover { background: var(--bg3); }
.ob-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.ob-divider span { font-size: 12px; color: var(--text3); }
.ob-divider::before, .ob-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.ob-link { font-size: 13px; color: var(--accent); cursor: pointer; background: none; border: none; font-family: inherit; }
.ob-link:hover { text-decoration: underline; }
.ob-footer-text { font-size: 12px; color: var(--text3); text-align: center; margin-top: 16px; }
.ob-back-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text3); font-size: 13px; cursor: pointer; font-family: inherit; padding: 0; margin-bottom: 32px; }
.ob-back-btn:hover { color: var(--accent); }
.ob-back-btn svg { width: 16px; height: 16px; }
.ob-screen { display: none; }
.ob-screen.active { display: block; }
.ob-plan-grid { display: flex; gap: 16px; }
.ob-plan-card { flex: 1; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 16px; padding: 24px 18px; position: relative; cursor: pointer; transition: all 0.2s; }
.ob-plan-card:hover { border-color: var(--accent); }
.ob-plan-card.selected { border-color: var(--accent); box-shadow: 0 4px 20px rgba(108,92,231,0.12); }
.ob-plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 4px 14px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.ob-plan-price { font-size: 32px; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.ob-plan-price span { font-size: 14px; font-weight: 400; color: var(--text3); }
.ob-plan-name { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.ob-plan-features { list-style: none; padding: 0; margin: 0 0 16px; }
.ob-plan-features li { padding: 6px 0; font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.ob-plan-features li::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300b894' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.ob-payment-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.ob-payment-info { padding: 12px 16px; background: rgba(52,152,219,0.08); border-radius: 8px; font-size: 12px; color: var(--blue); margin: 16px 0; }
.ob-payment-secured { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--text3); margin-top: 16px; }
.ob-autocomplete { position: relative; }
.ob-autocomplete-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 10; max-height: 180px; overflow-y: auto; }
.ob-autocomplete-item { padding: 10px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; border-bottom: 1px solid var(--border); }
.ob-autocomplete-item:hover { background: var(--bg3); }
.ob-autocomplete-item:last-child { border-bottom: none; }
select.ob-input { appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5f72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
@keyframes obspin { to { transform: rotate(360deg); } }
.ob-plan-btn { width: 100%; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ob-plan-btn-primary { background: var(--accent); color: white; border: none; }
.ob-plan-btn-primary:hover { background: var(--accent2); }
.ob-plan-btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.ob-plan-btn-outline:hover { background: var(--accent-bg); }
