/* App pages (order form, preview, portal). Site colours from css/site-shell.css, the main site's Plus Jakarta Sans. */
:root {
  --page: #f8f7f3;
  --surface: #ffffff;
  --ink: #090b1a;
  --muted: #5d6170;
  --border: #d8d2c9;
  --primary: #176b5d;
  --primary-hover: #0f5147;
  --primary-soft: #e4f2ec;
  --error: #a3261f;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.55;
  color: var(--ink); background: #fff;
}
.app-wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.app-top { background: #fff; border-bottom: 1px solid var(--border); }
.app-top .app-wrap { padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 40px; height: 40px; }
.brand span { display: grid; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand small { color: var(--primary); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
main.app-wrap { flex: 1 0 auto; }
.app-hero { background: linear-gradient(135deg, #15443b, #0b221e); color: #fff; padding: 8px 0 48px; }
.app-hero h1 { color: #fff; margin-top: 32px; }
.app-hero p { font-size: 1.15rem; color: #d7e8e1; margin: 0; }
.app-hero + main { padding-top: 32px; }
.app-hero a:focus-visible, .app-foot a:focus-visible { outline-color: #f4a261; }
.app-foot a { color: #cfe3db; }
.app-foot { margin-top: 56px; padding: 24px 0 40px; background: #0b221e; color: #cfe3db; font-size: .95rem; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px;
}
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); line-height: 1.2; margin: 40px 0 12px; }
h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.alert { background: #fbeceb; border-left: 4px solid var(--error); padding: 12px 16px; margin: 0 0 20px; }
.notice { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 12px 16px; margin: 0 0 20px; }
/* Bright and white (owner 16. 11. 2026., option 5c): white page, panels with a light border instead of shadows, squircle corners where supported. */
fieldset { border: 0; margin: 0 0 20px; padding: 28px; background: var(--surface); border-radius: 22px; box-shadow: inset 0 0 0 1.5px #d3dad8; corner-shape: superellipse(2); }
legend { font-size: 1.3rem; font-weight: 800; color: #15443b; padding: 0; float: left; width: 100%; margin-bottom: 8px; }
fieldset > .lead { clear: both; color: var(--muted); margin: 0 0 12px; }
.grid { clear: both; display: grid; grid-template-columns: 1fr; gap: 0 20px; }
.grid[hidden] { display: none; }
@media (min-width: 700px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .f.wide { grid-column: 1 / -1; }
}
.f { margin: 0 0 16px; }
.f label, .check label { font-weight: 600; }
.f label { display: block; margin-bottom: 4px; }
.req { color: var(--error); }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 11px 14px; border: 1.5px solid #d3dad8; border-radius: 14px; background: #fff; corner-shape: superellipse(2); transition: border-color .15s, box-shadow .15s;
}
input[type=text]:hover, input[type=email]:hover, input[type=tel]:hover, input[type=date]:hover, select:hover, textarea:hover { border-color: #8fa29d; }
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=date]:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(23, 107, 93, .12); }
textarea { resize: vertical; }
.help { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.err { margin: 4px 0 0; color: var(--error); font-size: .92rem; font-weight: 600; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.designs { clear: both; display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.design {
  flex: 1 1 220px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start;
  padding: 14px; background: #fff; border-radius: 16px; cursor: pointer; box-shadow: inset 0 0 0 1.5px #d3dad8; corner-shape: superellipse(2); transition: box-shadow .15s;
}
.design:hover { box-shadow: inset 0 0 0 1.5px #8fa29d; }
.design { position: relative; grid-template-columns: 1fr; }
.design input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.design:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.design strong, .design span:not(.swatch) { grid-column: 1; }
.design span:not(.swatch) { color: var(--muted); font-size: .92rem; }
.design:has(input:checked) { box-shadow: inset 0 0 0 3px var(--primary); }
.swatch { grid-column: 1; height: 34px; border-radius: 4px; border: 1px solid var(--border); }
.swatch { height: 56px; border: 0; position: relative; }
.swatch::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 44%; height: 12px; border-radius: 4px; background: var(--sw-btn); }
.swatch.s1 { background: #fbfaf6; box-shadow: inset 0 6px 0 #8a2a24; --sw-btn: #8a2a24; }
.swatch.s2 { background: #1d3557; --sw-btn: #f2b33d; }
.swatch.s3 { background: linear-gradient(90deg, #24272b 30%, #f6f3ee 30%); --sw-btn: #e0b04a; }
.swatch.s4 { background: #ffffff; box-shadow: inset 0 0 0 1px #d9d2de; --sw-btn: #5b3a6e; }
.swatch.s5 { background: linear-gradient(180deg, #8c8173, #2a2622); --sw-btn: #f7f6f3; }
.swatch.s6 { background: #fffaf3; box-shadow: inset 0 0 0 10px #ff7a45; --sw-btn: #24163a; }
.check { clear: both; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0 0 12px; }
.check input { margin-top: 3px; width: 22px; height: 22px; accent-color: var(--primary); }
.check .err { grid-column: 2; }
.btn, button.btn {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #1f8070, var(--primary)); color: #fff; border: 0; border-radius: 14px; padding: 14px 24px; corner-shape: superellipse(2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 2px 4px rgba(16, 35, 31, .18);
}
.btn:hover { background: linear-gradient(180deg, #1a7062, var(--primary-hover)); }
.btn.secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #d3dad8; }
.btn.secondary:hover { background: #fff; box-shadow: inset 0 0 0 1.5px #8fa29d; }
/* The portal's main button (Spremite i objavite): the order form's Dalje look, slow light streak on hover. */
@property --w49-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes w49-shine { to { --w49-a: 360deg; } }
.btn.btn-main { border: 2px solid transparent; padding: 14px 28px; font-size: 1.05rem; font-weight: 800; background: linear-gradient(180deg, #1f8070, var(--primary)) padding-box, linear-gradient(var(--primary), var(--primary)) border-box; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 4px rgba(16, 35, 31, .22), 0 12px 26px -8px rgba(23, 107, 93, .6); }
.btn.btn-main:hover { background: linear-gradient(180deg, #1f8070, var(--primary)) padding-box, conic-gradient(from var(--w49-a), var(--primary) 0 78%, #3f9a82 86%, #9fd6c6 89%, #3f9a82 92%, var(--primary) 100%) border-box; animation: w49-shine 6s linear infinite; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 4px rgba(16, 35, 31, .22), 0 12px 26px -8px rgba(23, 107, 93, .6), 0 0 12px -4px rgba(47, 160, 130, .28); }
@media (prefers-reduced-motion: reduce) { .btn.btn-main:hover { animation: none; } }
.submit { margin: 8px 0 0; }
dl.summary { display: grid; gap: 6px; }
dl.summary > div { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 10px 0; border-bottom: 1px solid #e3e8e6; background: var(--surface); }
dl.summary dt { flex: 0 0 12em; font-weight: 600; }
dl.summary dd { margin: 0; flex: 1 1 14em; }
.panel { margin: 0 0 20px; padding: 28px; background: var(--surface); border-radius: 22px; box-shadow: inset 0 0 0 1.5px #d3dad8; corner-shape: superellipse(2); }
.panel > :first-child { margin-top: 0; }
.panel .submit { margin-bottom: 0; }
.lead-line { font-size: 1.1rem; margin: 0 0 20px; }
.site-list { margin: 0; padding-left: 1.2em; font-size: 1.1rem; }
.site-list li { margin: 0 0 .5em; }
.logout { margin: 32px 0 0; }
.price-rows input[type=date] { padding-left: 8px; padding-right: 6px; }
.price-rows .prow { display: grid; grid-template-columns: minmax(0, 1fr) 100px 110px 150px; gap: 8px; margin-bottom: 8px; }
.price-rows .prow.head span { font-weight: 700; font-size: .95rem; }
@media (max-width: 640px) { .price-rows .prow { grid-template-columns: 1fr 1fr; } .price-rows .prow > :first-child { grid-column: 1 / -1; } .price-rows .prow.head { display: none; } }
/* Portal subscription panel */
.sub-panel form { display: inline-block; margin: 0 12px 0 0; }
.sub-panel .confirm { margin: 16px 0 0; padding: 16px; border-radius: 10px; background: #fbeceb; }
.sub-panel .confirm form { display: block; }
.btn.danger { background: #a3271b; color: #ffffff; }
.btn.danger:hover { background: #8a1f15; }
.w49-portal-sets { clear: both; display: grid; gap: 28px; margin: 24px 0 0; }
.w49-q { display: grid; gap: 10px; }
.w49-q h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.w49-q .help { margin: -4px 0 2px; }

/* Optional FAQ editor (lib/faq.php), folded */
details.more { margin: 20px 0 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px #d3dad8; corner-shape: superellipse(2); }
details.more summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 700; list-style: none; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-weight: 800; }
details.more[open] summary::after { content: "\2212"; }
.faq-edit > .help, .faq-edit > .err { margin: 0 16px 12px; }
.faq-edit .faq-pair { padding: 0 16px 8px; }
.faq-edit .faq-del-row { margin: 0 0 8px; }
.faq-edit .faq-del { padding: 6px 14px; font-size: .9rem; }
.faq-edit .faq-pair + .faq-pair { margin-top: 12px; }
.faq-edit .faq-add { margin: 0 16px 16px; }
.faq-edit [hidden] { display: none !important; }

/* Own-domain panel: long DNS records (TXT) wrap instead of widening the panel at 320 px. */
#domena li code { overflow-wrap: anywhere; }
#domena dd code { font-size: .8rem; } /* a nameserver stays on one line for copying (26 characters fit at 320 px) */
