/* Accountech Core – front-end form & table styles (RTL) */

/* -------------------------------------------------------------------------- */
/* Pilot / beta sitewide banner                                               */
/* -------------------------------------------------------------------------- */
.acc-pilot-banner {
	background: #7f1d1d;
	color: #fff;
	text-align: center;
	padding: .85rem 1rem;
	font-size: 1rem;
	line-height: 1.5;
	position: sticky;
	top: 0;
	z-index: 9999;
	border-bottom: 3px solid #ef4444;
}
.acc-pilot-banner .acc-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	flex-wrap: wrap;
}
.acc-pilot-icon { font-size: 1.3rem; flex: 0 0 auto; }
.acc-pilot-text { flex: 1 1 auto; }
.acc-pilot-banner strong { font-size: 1.1rem; letter-spacing: .02em; }
@media (max-width: 600px) {
	.acc-pilot-banner { font-size: .9rem; }
	.acc-pilot-banner strong { font-size: 1rem; }
}

.acc-form { max-width: 720px; margin: 0 0 2rem; }
.acc-form--narrow { max-width: 420px; }
.acc-field { margin-bottom: 1rem; }
.acc-field label { display: block; font-weight: 600; margin-bottom: .35rem; color: #0b2a4a; }
.acc-field input[type="text"],
.acc-field input[type="email"],
.acc-field input[type="url"],
.acc-field input[type="password"],
.acc-field input[type="number"],
.acc-field select,
.acc-field textarea {
	width: 100%;
	padding: .6rem .75rem;
	border: 1px solid #cfd8e3;
	border-radius: 8px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}
.acc-field input:focus,
.acc-field select:focus,
.acc-field textarea:focus {
	outline: none;
	border-color: #1e63b8;
	box-shadow: 0 0 0 3px rgba(30,99,184,.15);
}
.acc-field--check label { font-weight: 400; display: flex; align-items: center; gap: .4rem; }
.acc-field--check input { width: auto; }

.acc-form-hint { font-size: .9rem; color: #5a6b7b; background: #eef4fb; padding: .6rem .8rem; border-radius: 8px; }
.acc-form-alt { margin-top: 1rem; font-size: .95rem; }

.acc-btn {
	display: inline-block;
	padding: .6rem 1.2rem;
	border-radius: 8px;
	border: 1px solid #1e63b8;
	background: #fff;
	color: #1e63b8;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all .15s ease;
}
.acc-btn:hover { background: #eef4fb; }
.acc-btn--primary { background: #1e63b8; color: #fff; }
.acc-btn--primary:hover { background: #174e93; color: #fff; }

.acc-notice { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; }
.acc-notice--success { background: #e6f5ec; color: #1a7f37; border: 1px solid #a7d8b9; }
.acc-notice--error { background: #fdecec; color: #b32d2e; border: 1px solid #f0b3b3; }

/* Dashboard */
.acc-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.acc-dash-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 2rem; }
.acc-empty { color: #5a6b7b; }

/* My ratings cards (dashboard) */
.acc-myrev-card {
	background: #fff; border: 1px solid #e1e8f0; border-radius: 12px;
	padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.acc-myrev-head {
	display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
	margin-bottom: .75rem;
}
.acc-myrev-logo { width: 36px; height: 36px; object-fit: contain; border: 1px solid #e1e8f0; border-radius: 6px; padding: 2px; flex: 0 0 auto; }
.acc-myrev-title { flex: 1 1 auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.acc-myrev-name { font-weight: 700; color: #0b2a4a; text-decoration: none; font-size: 1.05rem; }
.acc-myrev-name:hover { text-decoration: underline; }
.acc-myrev-score { background: #eef4fb; color: #1e63b8; font-weight: 700; font-size: .88rem; padding: 2px 9px; border-radius: 999px; }
.acc-myrev-edit { flex: 0 0 auto; font-size: .9rem; padding: .4rem .9rem; }
.acc-myrev-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .3rem .75rem; margin-bottom: .5rem; }
.acc-myrev-metric { display: flex; align-items: center; gap: .4rem; font-size: .83rem; }
.acc-myrev-metric-label { flex: 0 0 110px; color: #5a6b7b; line-height: 1.2; }
.acc-myrev-metric-bar { flex: 1 1 auto; height: 6px; background: #e1e8f0; border-radius: 4px; overflow: hidden; }
.acc-myrev-metric-bar span { display: block; height: 100%; background: #1e63b8; border-radius: 4px; }
.acc-myrev-metric-val { flex: 0 0 18px; font-weight: 700; color: #0b2a4a; text-align: left; }
.acc-myrev-date { font-size: .8rem; color: #8a9bac; margin: .35rem 0 0; }

@media (max-width: 560px) {
	.acc-myrev-head { flex-direction: column; align-items: flex-start; }
	.acc-myrev-edit { width: 100%; text-align: center; }
	.acc-myrev-metric-label { flex: 0 0 90px; }
}

/* Tables */
.acc-table-wrap { overflow-x: auto; }
.acc-compare, .acc-mytable {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 2rem;
	background: #fff;
}
.acc-compare th, .acc-compare td,
.acc-mytable th, .acc-mytable td {
	border: 1px solid #e1e8f0;
	padding: .65rem .75rem;
	text-align: right;
	vertical-align: top;
}
.acc-compare thead th, .acc-mytable thead th { background: #1e63b8; color: #fff; }
.acc-compare tbody tr:nth-child(even),
.acc-mytable tbody tr:nth-child(even) { background: #f6f9fd; }

.acc-status { display: inline-block; padding: 2px 10px; border-radius: 10px; color: #fff; font-size: 12px; }
.acc-status--publish { background: #1a7f37; }
.acc-status--pending { background: #bf8700; }
.acc-status--draft { background: #646970; }
.acc-status--acc_revise { background: #0073aa; }
.acc-status--acc_rejected { background: #b32d2e; }

@media (max-width: 640px) {
	.acc-compare thead { display: none; }
	.acc-compare, .acc-compare tbody, .acc-compare tr, .acc-compare td { display: block; width: 100%; }
	.acc-compare tr { margin-bottom: 1rem; border: 1px solid #e1e8f0; border-radius: 8px; overflow: hidden; }
	.acc-compare td { border: none; border-bottom: 1px solid #eef2f7; }
	.acc-compare td::before { content: attr(data-th) ": "; font-weight: 700; color: #0b2a4a; }
}

/* -------------------------------------------------------------------------- */
/* Tools archive — category accordion                                         */
/* -------------------------------------------------------------------------- */
.acc-tool-cats { margin-top: 1.5rem; }

.acc-cat-group {
	border: 1px solid #e1e8f0;
	border-radius: 12px;
	margin-bottom: .6rem;
	overflow: hidden;
	background: #fff;
}

.acc-cat-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem 1.25rem;
	background: none;
	border: none;
	cursor: pointer;
	text-align: right;
	font: inherit;
	color: #0b2a4a;
	transition: background .15s;
}
.acc-cat-toggle:hover,
.acc-cat-group.is-open .acc-cat-toggle { background: #eef4fb; }

.acc-cat-name { flex: 1 1 auto; font-weight: 700; font-size: 1.05rem; }
.acc-cat-count { flex: 0 0 auto; font-size: .85rem; color: #5a6b7b; background: #f0f4f8; padding: 2px 9px; border-radius: 999px; }
.acc-cat-arrow { flex: 0 0 auto; font-size: .9rem; color: #5a6b7b; transition: transform .2s; }
.acc-cat-group.is-open .acc-cat-arrow { transform: rotate(180deg); }

.acc-cat-body { padding: 0 1.25rem; border-top: 1px solid #e1e8f0; }
.acc-cat-body[hidden] { display: none; }

/* -------------------------------------------------------------------------- */
/* Rate-this-tool CTA button (tool page)                                      */
/* -------------------------------------------------------------------------- */
.acc-rate-cta {
	padding: .75rem 2rem;
	font-size: 1.05rem;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(30,99,184,.18);
}
.acc-rate-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(30,99,184,.25); }

/* -------------------------------------------------------------------------- */
/* Ratings lock (shown to guests in place of community ratings)               */
/* -------------------------------------------------------------------------- */
.acc-rate-lock-box {
	display: flex; align-items: center; gap: .6rem;
	background: #eef4fb; border: 1px dashed #9cc0ec; color: #123a6b;
	border-radius: 10px; padding: .85rem 1rem; margin: 1rem 0; font-size: .95rem;
}
.acc-rate-lock-icon { font-size: 1.3rem; }
.acc-rate-lock-box a { font-weight: 700; }
.acc-rate-lock {
	display: inline-flex; align-items: center; gap: .25rem;
	font-weight: 700; font-size: .85rem; color: #1e63b8;
	white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Star input widget (1-5)                                                    */
/* -------------------------------------------------------------------------- */
.acc-stars-input { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.acc-stars-input .acc-star {
	background: none; border: none; padding: 0 1px; cursor: pointer;
	font-size: 1.55rem; line-height: 1; color: #f5a623;
	transition: transform .08s ease;
}
.acc-stars-input .acc-star:not(.is-on) { color: #cfd8e3; }
.acc-stars-input .acc-star:hover { transform: scale( 1.15 ); }

/* -------------------------------------------------------------------------- */
/* Onboarding wizard                                                          */
/* -------------------------------------------------------------------------- */
.acc-wizard { max-width: 760px; margin: 0 auto 2rem; }
.acc-wiz-progress { display: flex; gap: .5rem; justify-content: center; margin: 0 0 2rem; }
.acc-wiz-dot { width: 38px; height: 6px; border-radius: 6px; background: #dde7f2; transition: background .2s ease; }
.acc-wiz-dot.is-active { background: #1e63b8; }

.acc-wiz-step { display: none; animation: acc-fade .25s ease; }
.acc-wiz-step.is-active { display: block; }
@keyframes acc-fade { from { opacity: 0; transform: translateY( 8px ); } to { opacity: 1; transform: none; } }

.acc-wiz-title { margin: 0 0 .35rem; font-size: 1.7rem; color: #123a6b; }
.acc-wiz-sub { margin: 0 0 1.5rem; color: #5a6b7b; }
.acc-wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.acc-wiz-nav .acc-btn { min-width: 120px; text-align: center; }

/* Role cards */
.acc-role-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) ); gap: .85rem; }
.acc-role-grid.acc-shake { animation: acc-shake .4s; }
@keyframes acc-shake { 0%,100% { transform: none; } 25% { transform: translateX( -6px ); } 75% { transform: translateX( 6px ); } }
.acc-role-card {
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 76px; padding: 1rem; cursor: pointer; font-weight: 700; color: #123a6b;
	background: #fff; border: 2px solid #dde7f2; border-radius: 12px; transition: all .15s ease;
}
.acc-role-card:hover { border-color: #9cc0ec; background: #f6f9fd; }
.acc-role-card input { position: absolute; opacity: 0; pointer-events: none; }
.acc-role-card:has( input:checked ),
.acc-role-card.is-selected { border-color: #1e63b8; background: #eef4fb; box-shadow: 0 0 0 3px rgba(30,99,184,.12); }

/* Tool rating list */
.acc-rate-cat { margin: 0 0 1.5rem; }
.acc-rate-cat-title {
	margin: 0 0 .6rem; padding-bottom: .35rem; font-size: 1.1rem; color: #1e63b8;
	border-bottom: 2px solid #eef4fb;
}
.acc-rate-item { padding: .75rem 0; border-bottom: 1px solid #eef2f7; }
.acc-rate-item-head { display: flex; align-items: center; gap: .75rem; }
.acc-rate-item-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; border: 1px solid #e1e8f0; padding: 2px; background: #fff; flex: 0 0 auto; }
.acc-rate-item-name { flex: 1 1 auto; line-height: 1.2; }
.acc-rate-item-name small { display: block; color: #5a6b7b; font-weight: 400; font-size: .82rem; margin-top: 2px; }
.acc-rate-item-note {
	margin-top: .55rem; width: 100%; box-sizing: border-box;
	padding: .5rem .7rem; border: 1px solid #cfd8e3; border-radius: 8px; font: inherit; background: #fff;
}
.acc-rate-item-note:focus { outline: none; border-color: #1e63b8; box-shadow: 0 0 0 3px rgba(30,99,184,.15); }

/* Step 2 — tool selection chips */
.acc-pick-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) ); gap: .6rem; }
.acc-pick-card {
	display: flex; align-items: center; gap: .55rem; cursor: pointer;
	padding: .6rem .75rem; border: 2px solid #dde7f2; border-radius: 10px; background: #fff;
	font-weight: 600; color: #123a6b; transition: all .15s ease;
}
.acc-pick-card:hover { border-color: #9cc0ec; background: #f6f9fd; }
.acc-pick-card input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #1e63b8; }
.acc-pick-logo { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.acc-pick-name { flex: 1; font-size: .92rem; }
.acc-pick-card:has( input:checked ) { border-color: #1e63b8; background: #eef4fb; box-shadow: 0 0 0 3px rgba(30,99,184,.12); }

/* Step 3 — per-tool questionnaire */
.acc-rate-progress {
	display: inline-block; margin: 0 0 1rem; padding: .3rem .9rem;
	background: #eef4fb; color: #123a6b; font-weight: 700; font-size: .9rem; border-radius: 999px;
}
.acc-rate-panel { animation: acc-fade .25s ease; }
.acc-rate-panel-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.acc-rate-panel-logo { width: 44px; height: 44px; object-fit: contain; border: 1px solid #e1e8f0; border-radius: 8px; padding: 3px; background: #fff; flex: 0 0 auto; }
.acc-rate-panel-title { margin: 0; font-size: 1.3rem; color: #123a6b; }

.acc-q-metrics { margin: 0 0 1.25rem; }
.acc-q-metric {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .6rem 0; border-bottom: 1px solid #eef2f7;
}
.acc-q-metric-info { flex: 1 1 auto; line-height: 1.25; }
.acc-q-metric-label { display: block; font-weight: 700; color: #0b2a4a; }
.acc-q-metric-help { display: block; font-size: .82rem; color: #5a6b7b; }
.acc-q-metric .acc-stars-input { flex: 0 0 auto; }

.acc-q-optional { font-weight: 400; color: #5a6b7b; font-size: .85rem; }
.acc-q-multi { display: flex; flex-wrap: wrap; gap: .5rem; }
.acc-q-chip {
	display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
	padding: .35rem .7rem; border: 1px solid #cfd8e3; border-radius: 999px; background: #fff;
	font-size: .88rem; color: #123a6b; transition: all .15s ease;
}
.acc-q-chip input { accent-color: #1e63b8; }
.acc-q-chip:has( input:checked ) { border-color: #1e63b8; background: #eef4fb; }

.acc-rate-panel-nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.acc-rate-panel-navspacer { flex: 1 1 auto; }

/* Account step: register / login toggle */
.acc-acct-modes { display: flex; gap: .6rem; margin: 0 0 1.25rem; flex-wrap: wrap; }
.acc-acct-mode {
	flex: 1 1 170px; display: flex; align-items: center; justify-content: center; gap: .45rem;
	cursor: pointer; padding: .7rem; border: 2px solid #dde7f2; border-radius: 10px;
	font-weight: 700; color: #123a6b; background: #fff; transition: all .15s ease;
}
.acc-acct-mode input { accent-color: #1e63b8; }
.acc-acct-mode.is-active { border-color: #1e63b8; background: #eef4fb; box-shadow: 0 0 0 3px rgba(30,99,184,.12); }

/* Dashboard: my ratings detail */
.acc-myrev-detail { font-size: .82rem; color: #5a6b7b; }

@media (max-width: 560px) {
	.acc-wiz-title { font-size: 1.4rem; }
	.acc-rate-item-head { flex-wrap: wrap; }
	.acc-stars-input { width: 100%; justify-content: flex-start; }
	.acc-q-metric { flex-direction: column; align-items: flex-start; gap: .35rem; }
	.acc-rate-panel-navspacer { display: none; }
}

/* -------------------------------------------------------------------------- */
/* Tools archive — category grid                                              */
/* -------------------------------------------------------------------------- */
.acc-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}
.acc-cat-card {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	padding: 1.2rem 1.4rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	text-decoration: none;
	color: #1e293b;
	transition: border-color .18s, box-shadow .18s, transform .18s;
}
.acc-cat-card:hover {
	border-color: #1e63b8;
	box-shadow: 0 4px 16px rgba(30,99,184,.12);
	transform: translateY(-2px);
}
.acc-cat-card-name {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e3a5f;
}
.acc-cat-card-count {
	font-size: .85rem;
	color: #6b7280;
}
.acc-cat-card-arrow {
	margin-top: auto;
	padding-top: .6rem;
	font-size: 1.1rem;
	color: #1e63b8;
}
@media (max-width: 480px) {
	.acc-cat-grid { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------------- */
/* Taxonomy category page                                                     */
/* -------------------------------------------------------------------------- */
.acc-breadcrumb {
	margin-bottom: 1rem;
	font-size: .9rem;
}
.acc-breadcrumb a {
	color: #1e63b8;
	text-decoration: none;
}
.acc-breadcrumb a:hover { text-decoration: underline; }

.acc-cat-page-title {
	font-size: 2rem;
	margin-bottom: .5rem;
}

/* Vendor CTA block at bottom of category page */
.acc-vendor-cta-block {
	margin-top: 3rem;
	background: linear-gradient(135deg, #1e3a5f 0%, #1e63b8 100%);
	border-radius: 12px;
	text-align: center;
	padding: 2.5rem 2rem;
	color: #fff;
}
.acc-vendor-cta-inner h2 {
	font-size: 1.5rem;
	margin: .5rem 0 .8rem;
	color: #fff;
}
.acc-vendor-cta-inner p {
	font-size: 1.05rem;
	margin-bottom: 1.4rem;
	opacity: .92;
}
.acc-vendor-cta-icon { font-size: 2.2rem; display: block; margin-bottom: .3rem; }

/* -------------------------------------------------------------------------- */
/* Vendor submit form                                                          */
/* -------------------------------------------------------------------------- */
.acc-vendor-form-wrap {
	max-width: 700px;
	margin: 0 auto;
}
.acc-vendor-intro {
	font-size: 1.05rem;
	margin-bottom: 1.8rem;
	line-height: 1.6;
	color: #374151;
}
.acc-vendor-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e3a5f;
	margin: 2rem 0 1rem;
	padding-bottom: .4rem;
	border-bottom: 2px solid #e2e8f0;
}
.acc-vendor-section-title .acc-field-hint { color: #6b7280; font-weight: 400; font-size: .9rem; }
.acc-field-hint { color: #6b7280; font-size: .88rem; }
.acc-field-label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; }

.acc-field--checks {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
.acc-field--checks label {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-weight: 400;
	cursor: pointer;
}
.acc-field--checks input[type="checkbox"] {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: #1e63b8;
}

.acc-field--half-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 560px) {
	.acc-field--half-row { grid-template-columns: 1fr; }
	.acc-vendor-cta-block { padding: 2rem 1.2rem; }
	.acc-vendor-cta-inner h2 { font-size: 1.25rem; }
}

.acc-vendor-form select {
	width: 100%;
	padding: .55rem .8rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: .97rem;
	background: #fff;
	color: #1e293b;
}
.acc-vendor-form select:focus {
	outline: none;
	border-color: #1e63b8;
	box-shadow: 0 0 0 3px rgba(30,99,184,.15);
}

.acc-btn--lg {
	font-size: 1.05rem;
	padding: .8rem 2rem;
}
