/* DEOTAS application form: clean "store configurator" look */
:root {
  --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --soft: #f5f5f7; --card: #fff;
  --accent: #0071e3; --accent-hover: #0077ed; --accent-soft: #e8f2fd;
  --err: #d70015; --ok: #1d8a3a;
  --radius: 18px; --radius-sm: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.47; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20; height: 48px;
  background: rgba(251, 251, 253, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 22px; font-size: .8rem; }
.site-header nav a { color: var(--ink); opacity: .8; }

/* hero */
.hero { text-align: center; padding: 56px 0 36px; }
.eyebrow { color: #bf4800; font-size: .95rem; font-weight: 600; margin: 0 0 8px; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.07; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 16px; }
h1 span { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.2rem; line-height: 1.4; max-width: 640px; margin: 0 auto 22px; }
.usp { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .9rem; }
.usp li::before { content: "\2713"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* steps */
.card { background: var(--card); border: 0; border-top: 1px solid var(--line); padding: 44px 0 40px; margin: 0; }
.stepno { color: var(--muted); font-size: .85rem; font-weight: 600; margin: 0 0 4px; text-transform: none; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 22px; }
.card > p { color: var(--muted); font-size: 1.05rem; }

/* fields */
.field { margin: 0 0 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; border: 1px solid #86868b; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, #6e6e73 50%), linear-gradient(135deg, #6e6e73 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); }
input[type=file] { font: inherit; font-size: .95rem; }
input[type=file]::file-selector-button { font: inherit; border: 0; border-radius: 980px; padding: 8px 16px; margin-right: 12px; background: var(--soft); color: var(--accent); cursor: pointer; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.hint.warn { color: #b25000; }
.hint.ok { color: #1d7d3a; }
#logo-info:empty { display: none; }
.req { color: var(--muted); font-weight: 400; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid.three { grid-template-columns: 1fr 2fr 1.5fr; }
@media (max-width: 640px) { .grid, .grid.three { grid-template-columns: 1fr; } }

/* tiles (radio choices) */
fieldset.choice { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { fieldset.choice { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 16px; cursor: pointer; margin: 0; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: #86868b; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile-title { display: block; font-size: 1.05rem; font-weight: 600; }
.tile-sub { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.tile:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(0, 113, 227, .25); }

/* checkboxes */
.check { font-weight: 400; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 14px 0; cursor: pointer; }
.check > input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.check > span { flex: 1; min-width: 0; }
.check > .err { flex-basis: 100%; padding-left: 30px; }

/* errors */
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.has-error .tile { border-color: var(--err); }
.err { color: var(--err); font-size: .85rem; margin: 6px 0 0; }
.alert { background: #fff2f4; color: var(--err); border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; font-size: .95rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* class finder */
.combo { position: relative; }
#term-search { padding-left: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5 17 17'/%3E%3C/svg%3E") no-repeat 16px center; }
#term-results {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(20px); border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .05); max-height: 380px; overflow-y: auto;
}
#term-results li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
#term-results li:hover, #term-results li.active { background: var(--soft); }
#term-results li.is-selected .t::before { content: "\2713  "; color: var(--accent); font-weight: 700; }
#term-results li.own { color: var(--accent); }
.badge { flex: none; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 980px; padding: 3px 10px; white-space: nowrap; }
.own-box { background: var(--soft); border-radius: var(--radius-sm); padding: 18px; margin-top: 12px; display: grid; gap: 10px; }
.own-box label { margin: 0; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 980px; padding: 12px 22px; font: inherit; font-size: 1rem; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }
.btn.small { padding: 9px 20px; justify-self: start; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; justify-self: start; padding: 0; }

.selected .class-group { background: var(--soft); border-radius: var(--radius-sm); padding: 14px 16px; margin: 12px 0; }
.class-group h3 { font-size: .95rem; margin: 0 0 8px; font-weight: 600; }
.class-group h3 small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.class-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.class-group li { background: #fff; border-radius: 980px; padding: 5px 6px 5px 14px; display: flex; align-items: center; gap: 4px; font-size: .92rem; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.class-group li button { border: 0; background: var(--soft); width: 22px; height: 22px; border-radius: 50%; font-size: .9rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0; }
.empty { color: var(--muted); font-size: .95rem; margin-top: 14px; }

/* summary */
#pay { padding-bottom: 56px; }
table.price { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 1.02rem; }
table.price td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.price td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
table.price small { color: var(--muted); }
table.price .total td { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; border-bottom: 0; padding-top: 18px; }
#paypal-buttons { margin-top: 24px; max-width: 420px; }
#logo-preview { max-width: 220px; max-height: 160px; margin-top: 12px; border-radius: var(--radius-sm); background: var(--soft); padding: 10px; }
.done { text-align: center; padding: 72px 0; }
.done h2 { color: var(--ink); }
.done h2::before { content: "\2713"; display: block; margin: 0 auto 16px; width: 56px; height: 56px; line-height: 56px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 1.6rem; }

/* footer */
.site-footer { background: var(--soft); padding: 22px 0 40px; font-size: .78rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #424245; }
.site-footer span { margin-left: auto; }

/* legal pages */
.legal { padding-top: 40px; padding-bottom: 40px; }
.legal h1 { font-size: 2.4rem; }
.legal h1 small { font-size: 1rem; color: var(--muted); font-weight: 400; display: block; margin-top: 6px; letter-spacing: 0; }
.legal .card { padding-top: 24px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal mark { background: #fff3bf; padding: 0 3px; }
.legal ul { padding-left: 1.2rem; }
.card, .field { scroll-margin-top: 72px; }

/* help boxes */
.help { margin: 0 0 22px; }
.help summary { cursor: pointer; color: var(--accent); font-size: .95rem; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.help summary::-webkit-details-marker { display: none; }
.help summary::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--accent); font-size: .75rem; font-weight: 700; }
.help summary::after { content: "\203A"; font-size: 1.2rem; line-height: 1; }
.help[open] summary::after { transform: rotate(90deg); }
.help-body { background: var(--soft); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 12px; font-size: .93rem; color: #424245; }
.help-body p { margin: 0 0 10px; }
.help-body p:last-child { margin-bottom: 0; }
.help-body ul, .help-body ol { margin: 0 0 10px; padding-left: 1.2rem; }
.help-body li { margin: 4px 0; }
.help-body .tip { color: var(--muted); font-size: .88rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }
.compare > div { background: #fff; border-radius: var(--radius-sm); padding: 16px; }
.compare h4 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.compare-ex { height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--soft); margin: 0 0 12px !important; }
.word-ex { font: 600 1.3rem/1 Arial, sans-serif; letter-spacing: .06em; color: var(--ink); }
.logo-ex { font: italic 700 1.4rem/1 Georgia, serif; color: #fff; background: linear-gradient(135deg, #0b3d91, #00a3a3) !important; gap: 8px; }
.logo-ex span { color: #ffd60a; font-style: normal; }

/* content pages */
.article .card h2 { font-size: 1.45rem; margin: 30px 0 10px; }
.article .card h2:first-child { margin-top: 0; }
.article .card p, .article .card li { font-size: 1.05rem; }
.article .card ul, .article .card ol { padding-left: 1.3em; }
.article .card li { margin: 6px 0; }
.article ol.steps li { margin: 10px 0; }
.article .byline { color: var(--muted); font-size: .85rem !important; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 14px; }
table.compare { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .97rem; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
table.compare th { font-weight: 600; }
table.compare td:first-child { color: var(--muted); width: 26%; }
.cta { background: var(--soft); border-radius: var(--radius); padding: 26px 28px; margin: 10px 0 40px; text-align: center; }
.cta p { margin: 0 0 12px; }
.cta .btn { display: inline-block; text-decoration: none; }
.site-header nav a[aria-current] { opacity: 1; font-weight: 600; }
.site-footer .wrap { flex-wrap: wrap; }
@media (max-width: 600px) { .site-header nav { gap: 14px; } table.compare { font-size: .88rem; } }

/* language switcher */
.langswitch { position: relative; font-size: .8rem; }
.langswitch summary { cursor: pointer; list-style: none; opacity: .8; }
.langswitch summary::-webkit-details-marker { display: none; }
.langswitch summary::before { content: "\1F310"; margin-inline-end: 4px; }
.langswitch ul { position: absolute; inset-inline-end: 0; top: 26px; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12); list-style: none; margin: 0; padding: 6px 0; min-width: 170px; max-height: 70vh; overflow: auto; }
.langswitch li a { display: block; padding: 6px 14px; color: var(--ink); white-space: nowrap; }
.langswitch li a[aria-current] { font-weight: 600; }
.langswitch li a:hover { background: var(--soft); text-decoration: none; }

/* right-to-left (Arabic) */
[dir="rtl"] table.price td:last-child { text-align: left; padding-left: 0; padding-right: 16px; }
[dir="rtl"] .site-footer span { margin-left: 0; margin-right: auto; }
[dir="rtl"] .article .card ul, [dir="rtl"] .article .card ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] table.compare th, [dir="rtl"] table.compare td { text-align: right; padding: 10px 0 10px 10px; }
[dir="rtl"] .check > .err { padding-left: 0; padding-right: 30px; }
