/* FAQ page (faq.php). Shared pieces live in css/site.css. */

/* ---------- Search in hero ---------- */
.of-search { position: relative; max-width: 560px; margin: 32px auto 0; }
.of-search i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--oh-muted); font-size: 16px; }
.of-search input {
    width: 100%; height: 58px; padding: 0 22px 0 54px; border: 0; border-radius: 999px; outline: none;
    font-size: 15px; color: var(--oh-ink); background: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.of-search input::placeholder { color: #94a3b8; }

/* ---------- Tabs ---------- */
.of-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--oh-line); box-shadow: 0 10px 30px -20px rgba(5, 54, 121, .5); }
.of-tab { border: 0; background: none; padding: 11px 26px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--oh-muted); cursor: pointer; transition: background .2s, color .2s; }
.of-tab:hover { color: var(--oh-navy); }
.of-tab.active { background: var(--oh-grad-navy); color: #fff; }
.of-tabs-wrap { text-align: center; margin-bottom: 36px; }

/* ---------- Questions ---------- */
.of-list { max-width: 880px; margin: 0 auto; }
.of-pane { display: none; }
.of-pane.active { display: block; }
.of-pane-label { display: none; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oh-muted); margin: 8px 0 14px; }
.of-list.is-searching .of-pane { display: block; }
.of-list.is-searching .of-pane-label { display: block; }
.of-list.is-searching .of-pane.is-empty { display: none; }

.of-item { background: #fff; border: 1px solid var(--oh-line); border-radius: 18px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.of-item:hover { border-color: #c7d6ea; }
.of-item[open] { border-color: #bcd3f0; box-shadow: 0 18px 36px -24px rgba(5, 54, 121, .55); }
.of-item summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; }
.of-item summary::-webkit-details-marker { display: none; }
.of-num { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--oh-soft); color: var(--oh-blue); font-size: 13px; font-weight: 700; }
.of-item[open] .of-num { background: var(--oh-grad-navy); color: #fff; }
.of-q { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 16px !important; font-weight: 600; color: var(--oh-navy) !important; line-height: 1.5 !important; }
.of-q-text { flex: 1; min-width: 0; font-size: inherit !important; line-height: inherit !important; color: inherit !important; font-weight: inherit !important; letter-spacing: inherit; } /* wrapped lines stay aligned with the first word, not under the tag */
.of-toggle { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--oh-line); color: var(--oh-navy); font-size: 12px; transition: transform .25s, background .2s; }
.of-item[open] .of-toggle { transform: rotate(45deg); background: var(--oh-soft); }
.of-a { padding: 0 22px 22px 72px; }
.of-a, .of-a p, .of-a li, .of-a span { font-size: 15px !important; line-height: 1.75 !important; color: var(--oh-text) !important; }
.of-a p { white-space: pre-line; margin: 0; } /* answers use \n for lists in the lang files */
.of-a a { color: var(--oh-blue) !important; font-weight: 600; }

/* Product tag on each SME question */
.of-q .of-tag { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 11px !important; line-height: 1.5 !important; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.of-tag.is-invoice { background: #e0f2fe; color: #0369a1 !important; }
.of-tag.is-contract { background: #ede9fe; color: #5b21b6 !important; }
.of-tag.is-both { background: var(--oh-soft); color: var(--oh-navy) !important; }

/* SME Loan: the two conventional products */
.of-products-intro { text-align: center; font-size: 15px !important; color: var(--oh-muted) !important; margin: 0 0 18px; }
.of-products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.of-product {
    display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--oh-line);
    text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.of-product:hover { border-color: #bcd3f0; box-shadow: 0 18px 36px -24px rgba(5, 54, 121, .55); transform: translateY(-2px); }
.of-product .oh-icon-tile { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; flex-shrink: 0; }
.of-product-body { display: flex; flex-direction: column; gap: 6px; }
.of-product-body strong { font-size: 17px; color: var(--oh-navy); }
.of-product-body > span { font-size: 14px !important; line-height: 1.6 !important; color: var(--oh-text) !important; }
.of-product-body em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--oh-blue); }
.of-product-body em i { font-size: 11px; margin-left: 4px; transition: transform .2s; }
.of-product:hover em i { transform: translateX(3px); }
.of-list.is-searching .of-products, .of-list.is-searching .of-products-intro { display: none; }
.of-empty { display: none; text-align: center; padding: 40px 20px; color: var(--oh-muted); }
.of-empty i { display: block; font-size: 28px; color: #cbd5e1; margin-bottom: 10px; }
.of-list.no-results .of-empty { display: block; }

/* ---------- Help: report + track ---------- */
.of-help-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.of-side { display: flex; flex-direction: column; gap: 28px; }
.of-form-card { background: #fff; border: 1px solid var(--oh-line); border-radius: 24px; padding: 32px; box-shadow: 0 24px 48px -32px rgba(5, 54, 121, .45); }
.of-form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.of-form-head h3 { font-size: 20px !important; font-weight: 700; }
.of-form-head p { margin: 2px 0 0; font-size: 13px !important; color: var(--oh-muted) !important; }
.of-form-head .oh-icon-tile { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.of-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.of-form-grid .of-full { grid-column: 1 / -1; }
.of-form-card .form-group { margin-bottom: 16px; }
.of-form-card label { display: block; font-size: 13px !important; font-weight: 600; color: var(--oh-navy) !important; margin-bottom: 6px; }
.of-form-card .form-control {
    height: auto; padding: 12px 14px; border-radius: 12px; border: 1px solid #d6e0ec; box-shadow: none;
    font-size: 14px; color: var(--oh-ink); background: #fbfdff; transition: border-color .2s, box-shadow .2s;
}
.of-form-card .form-control:focus { border-color: var(--oh-blue); box-shadow: 0 0 0 4px rgba(1, 88, 158, .12); background: #fff; }
.of-form-card textarea.form-control { resize: vertical; min-height: 120px; }
.of-form-card .oh-btn { width: 100%; margin-top: 6px; }
#successMessage { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #ecfdf5; color: #047857 !important; font-size: 14px !important; }

/* Issue type dropdown (driven by the page script) */
.dropdown-wrapper { position: relative; width: 100%; }
.custom-select { position: relative; width: 100%; cursor: pointer; }
.custom-select .selected {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #d6e0ec; border-radius: 12px; background: #fbfdff; transition: border-color .2s;
}
.custom-select.active .selected, .custom-select .selected:hover { border-color: var(--oh-blue); }
.custom-select .selected span { font-size: 14px !important; color: var(--oh-ink) !important; }
.custom-select .selected i { color: var(--oh-blue); font-size: 18px; }
.custom-select .arrow { margin-left: auto; transition: transform .3s; }
.custom-select.active .arrow { transform: rotate(180deg); }
.custom-select .options {
    display: none; position: absolute; z-index: 20; width: 100%; margin-top: 8px; padding: 6px; list-style: none;
    background: #fff; border: 1px solid var(--oh-line); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(5, 54, 121, .5);
}
.custom-select .options li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px !important; color: var(--oh-navy) !important; transition: background .2s; }
.custom-select .options li:hover { background: var(--oh-soft); }
.custom-select .options li i { color: var(--oh-blue); font-size: 18px; }

.of-contact { background: var(--oh-grad-navy); border-radius: 24px; padding: 30px; color: #fff; }
.of-contact h3 { color: #fff !important; font-size: 18px !important; font-weight: 700; margin-bottom: 16px !important; }
.of-contact ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.of-contact li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.of-contact li i { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); font-size: 14px; }
.of-contact li span { color: rgba(255, 255, 255, .9) !important; font-size: 14px !important; line-height: 1.6 !important; }

/* Ticket tracker (rendered by the page script) */
#trackResult { margin-top: 20px; }
.tracker-theme-blue { background: #f8fbff; border-radius: 18px; padding: 22px 18px; border: 1px solid var(--oh-line); animation: of-fade .5s ease; }
.tracker-theme-blue h4 { font-size: 16px !important; }
.tracker-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0; }
.tracker-steps .step { flex: 0 0 auto; text-align: center; }
.step-circle { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 17px; background: #f1f5f9; color: #94a3b8; }
.step-completed .step-circle { background: var(--oh-grad-navy); color: #fff; }
.step-active .step-circle { border: 3px solid var(--oh-blue); background: #fff; color: var(--oh-blue); animation: of-pulse 2.4s ease-in-out infinite; }
.step-label { margin-top: 6px; font-weight: 600; font-size: 11px; color: #334155; }
.connector { flex: 1; height: 4px; border-radius: 4px; background: #e2e8f0; position: relative; overflow: hidden; }
.connector::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--oh-blue), var(--oh-sky)); opacity: 0; }
.step-completed + .connector::before, .step-active + .connector::before { opacity: 1; }
.tracker-info { background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 10px; border-left: 4px solid var(--oh-blue); }
.tracker-info h6 { font-weight: 600; color: var(--oh-blue); margin: 0 0 4px; font-size: 13px; }
.tracker-info p { margin: 0; color: #333; line-height: 1.6; }
@keyframes of-pulse { 0% { box-shadow: 0 0 0 0 rgba(1, 88, 158, .35); } 70% { box-shadow: 0 0 0 10px rgba(1, 88, 158, 0); } 100% { box-shadow: 0 0 0 0 rgba(1, 88, 158, 0); } }
@keyframes of-fade { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .of-help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .of-form-grid { grid-template-columns: 1fr; }
    .of-products { grid-template-columns: 1fr; }
    .of-q { flex-direction: column; align-items: flex-start; gap: 6px; }
    .of-form-card { padding: 24px 20px; }
    .of-item summary { padding: 16px; gap: 12px; }
    .of-a { padding: 0 16px 18px 16px; }
    .of-tab { padding: 10px 18px; }
}
