:root { --wine:#941638; --wine-dark:#671027; --green:#008c45; --sun:#f6a51c; --coral:#e45c4b; --ink:#1c1b1d; --muted:#706d70; --line:#e7e2df; --cream:#fff8ed; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { background:#f7f4f1; }
body { margin:0; color:var(--ink); font-family:"Tahoma","Arial",sans-serif; background:linear-gradient(90deg,rgba(255,250,243,.42),rgba(255,255,255,.2)),url("qexpress-fair-background.png") center/cover fixed no-repeat,var(--cream); }
body:before { content:""; position:fixed; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,249,239,.08) 60%,rgba(255,248,237,.28)); z-index:-1; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
.topbar { min-height:88px; display:flex; align-items:center; justify-content:space-between; padding:12px clamp(22px,5vw,76px); background:rgba(255,255,255,.95); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; backdrop-filter:blur(10px); }
.topbar.solo { justify-content:center; }
.header-actions { position:absolute; inset-inline-end:clamp(22px,5vw,76px); display:flex; align-items:center; gap:12px; }
.language-toggle { border:1px solid rgba(148,22,56,.22); color:var(--wine); background:white; border-radius:999px; padding:9px 16px; font-weight:800; box-shadow:0 5px 18px rgba(56,25,33,.07); }
.brand { display:flex; align-items:center; gap:20px; }
.brand-mark { display:block; border:0; padding:0; margin:0; background:transparent; line-height:0; }
.brand img { width:164px; height:58px; object-fit:contain; }
.brand span { color:var(--muted); padding-right:20px; border-right:1px solid var(--line); font-size:14px; }
.topbar.solo .brand span { display:none; }
nav { display:flex; background:#f2eeeb; border-radius:12px; padding:4px; }
nav button { border:0; color:#686468; background:transparent; padding:11px 18px; border-radius:9px; font-weight:700; }
nav button.active { background:white; color:var(--wine); box-shadow:0 3px 12px rgba(52,31,36,.08); }
.registration-shell { max-width:1380px; margin:0 auto; min-height:calc(100vh - 150px); display:grid; grid-template-columns:.8fr 1.2fr; gap:7vw; padding:64px clamp(24px,6vw,90px); align-items:start; }
.intro-panel { position:sticky; top:150px; padding:28px; border-radius:28px; background:rgba(255,255,255,.62); border:1px solid rgba(255,255,255,.75); box-shadow:0 24px 65px rgba(89,55,38,.09); backdrop-filter:blur(7px); }
.fair-lockup { width:max-content; max-width:100%; display:flex; align-items:center; gap:14px; margin-bottom:28px; padding:10px 16px; border-radius:18px; color:white; background:linear-gradient(115deg,var(--coral),var(--sun)); box-shadow:0 14px 35px rgba(228,92,75,.22); }
.fair-lockup strong { font-size:44px; line-height:1; border-inline-end:1px solid rgba(255,255,255,.45); padding-inline-end:14px; }
.fair-lockup div { display:grid; gap:4px; }.fair-lockup span { font-weight:900; }.fair-lockup small { font-size:12px; opacity:.92; }
.eyebrow { direction:ltr; display:inline-flex; color:var(--green); font-size:12px; font-weight:800; letter-spacing:.16em; align-items:center; gap:8px; }
.eyebrow:before { content:""; width:26px; height:2px; background:var(--green); }
.intro-panel h1 { margin:22px 0; font-size:clamp(43px,5vw,72px); line-height:1.22; letter-spacing:-.04em; }
.intro-panel h1 span { color:var(--wine); }
.intro-panel p { color:var(--muted); font-size:18px; line-height:2; max-width:480px; }
.purpose { margin-top:52px; color:var(--wine); font-style:italic; font-weight:700; display:flex; align-items:center; gap:12px; }
.purpose i { width:9px; height:9px; border-radius:50%; background:var(--green); box-shadow:0 0 0 6px rgba(0,140,69,.1); }
.form-card,.table-card { background:white; border:1px solid rgba(140,120,120,.15); border-radius:24px; box-shadow:0 24px 70px rgba(56,25,33,.08); }
.form-card { padding:clamp(25px,4vw,52px); }
.form-card { position:relative; overflow:hidden; }.form-card:before { content:""; position:absolute; width:180px; height:180px; inset:-100px auto auto -80px; border-radius:50%; border:22px solid rgba(246,165,28,.08); pointer-events:none; }
.form-heading { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:24px; margin-bottom:26px; }
.form-heading span { color:var(--green); font-size:13px; font-weight:800; }
.form-heading h2 { margin:7px 0 0; font-size:29px; }
.form-heading b { color:#eee9e7; font-size:54px; line-height:1; direction:ltr; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
label,legend { color:#464145; font-size:13px; font-weight:700; }
input,select,textarea { width:100%; border:1px solid var(--line); border-radius:10px; padding:13px 14px; background:#fcfbfa; color:var(--ink); margin-top:8px; outline:none; transition:.2s; }
input:focus,select:focus,textarea:focus { border-color:var(--wine); box-shadow:0 0 0 3px rgba(148,22,56,.09); background:white; }
textarea { resize:vertical; }
fieldset { border:0; padding:0; margin:24px 0; }
.priority-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:10px; }
.priority { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:12px; padding:13px; cursor:pointer; background:#fcfbfa; }
.priority input { width:auto; margin:0 0 8px; accent-color:var(--wine); }
.priority span { font-size:12px; }
.priority small { color:var(--muted); margin-top:4px; }
.priority.selected { border-color:var(--wine); background:#fff8fa; }
.contact-choice { grid-column:1 / -1; margin:0; min-width:0; }
.contact-choice-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }
.contact-choice-row label { min-height:48px; display:flex; align-items:center; justify-content:center; gap:9px; border:1px solid var(--line); border-radius:10px; background:#fcfbfa; cursor:pointer; transition:.2s; }
.contact-choice-row label:hover { border-color:#c58a9b; background:#fffafb; }
.contact-choice-row label.selected { color:var(--wine); border-color:var(--wine); background:#fff4f7; box-shadow:0 0 0 3px rgba(148,22,56,.08); }
.contact-choice-row input { width:17px; height:17px; margin:0; accent-color:var(--wine); }
.interest-checklist { grid-column:1 / -1; margin:0; min-width:0; }
.interest-checklist legend { width:100%; }
.interest-checklist legend small { color:var(--muted); font-weight:400; margin-right:6px; }
.interest-checklist-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:8px; }
.interest-checklist-grid label { min-height:54px; display:flex; align-items:center; justify-content:flex-start; gap:9px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fcfbfa; cursor:pointer; transition:.2s; }
.interest-checklist-grid label:hover { border-color:#c58a9b; background:#fffafb; }
.interest-checklist-grid label.selected { color:var(--wine); border-color:var(--wine); background:#fff4f7; box-shadow:0 0 0 3px rgba(148,22,56,.08); }
.interest-checklist-grid input { width:18px; height:18px; margin:0; accent-color:var(--wine); flex:0 0 auto; }
[dir="ltr"] .interest-checklist-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
[dir="ltr"] .interest-checklist-grid label { min-height:58px; padding:12px 16px; }
[dir="ltr"] .interest-checklist-grid label span,[dir="ltr"] .contact-choice-row label span { line-height:1.25; }
[dir="ltr"] .contact-choice-row label { min-height:54px; padding:10px 16px; }
.consent { margin:22px 0; display:flex; gap:11px; align-items:flex-start; line-height:1.7; font-weight:400; color:var(--muted); }
.consent input { width:18px; height:18px; margin:2px 0 0; accent-color:var(--wine); flex:0 0 auto; }
.primary,.export { border:0; border-radius:11px; font-weight:800; }
.primary { background:var(--wine); color:white; width:100%; display:flex; justify-content:center; align-items:center; gap:18px; padding:16px; box-shadow:0 9px 25px rgba(148,22,56,.25); }
.primary:hover { background:var(--wine-dark); transform:translateY(-1px); }
.primary:disabled,.export:disabled { opacity:.6; cursor:not-allowed; }
.notice { padding:14px 16px; border-radius:10px; margin-bottom:22px; font-size:14px; }
.notice.success { background:#e8f7ee; color:#087539; border:1px solid #bce7cc; }
.notice.error { background:#fff0f2; color:#941638; border:1px solid #efc7d0; }
.dashboard { max-width:1380px; margin:0 auto; padding:54px clamp(24px,5vw,76px) 80px; }
.dashboard-title { display:flex; justify-content:space-between; align-items:end; gap:20px; }
.dashboard-title h1 { font-size:40px; margin:12px 0 8px; }
.dashboard-title p { color:var(--muted); margin:0; }
.export { background:var(--green); color:white; padding:14px 20px; box-shadow:0 8px 22px rgba(0,140,69,.2); }
.dashboard-actions { display:flex; align-items:center; gap:10px; }
.danger-outline { border:1px solid #b52343; color:#a21636; background:#fff; border-radius:11px; padding:13px 18px; font-weight:800; }
.danger-outline:hover { color:#fff; background:#a21636; }
.delete-row { border:1px solid #efc7d0; color:#a21636; background:#fff6f8; border-radius:8px; padding:7px 11px; font-weight:800; white-space:nowrap; }
.delete-row:hover { color:#fff; background:#a21636; border-color:#a21636; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:34px 0 22px; }
.stats article { background:white; border:1px solid var(--line); border-radius:18px; padding:24px; display:grid; grid-template-columns:1fr auto; align-items:center; }
.stats span { color:var(--muted); font-size:13px; font-weight:700; }
.stats strong { grid-row:1/3; grid-column:2; font-size:38px; color:var(--wine); }
.stats small { color:#9c9799; margin-top:8px; }
.stats .hot-stat { background:var(--wine); border-color:var(--wine); }
.stats .hot-stat span,.stats .hot-stat small { color:#f0cbd5; }
.stats .hot-stat strong { color:white; }
.toolbar { padding:18px; display:grid; grid-template-columns:minmax(220px,1fr) 220px auto; gap:12px; align-items:center; border-bottom:1px solid var(--line); }
.toolbar input,.toolbar select { margin:0; }
.toolbar span { color:var(--muted); font-size:13px; padding:0 8px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:850px; text-align:right; }
[dir="ltr"] table { text-align:left; }
[dir="ltr"] .primary .arrow { transform:rotate(180deg); }
th { background:#faf8f6; color:#7d777a; font-size:12px; padding:14px 20px; }
td { border-top:1px solid #eeeae7; padding:17px 20px; font-size:14px; vertical-align:top; }
td strong,td small { display:block; }
td small { color:#989396; margin-top:6px; font-size:12px; max-width:270px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
td a { color:var(--wine); text-decoration:none; font-weight:700; direction:ltr; display:inline-block; }
.badge { display:inline-block; padding:6px 11px; border-radius:999px; font-size:12px; font-weight:800; }
.badge.hot { background:#fbe7ec; color:var(--wine); }.badge.warm { background:#e8f7ee; color:#087539; }.badge.general { background:#efedef; color:#686268; }
.empty { padding:60px; text-align:center; color:var(--muted); }
footer { background:#211d1e; color:white; min-height:75px; display:flex; align-items:center; justify-content:space-between; padding:18px clamp(24px,5vw,76px); direction:ltr; }
footer span { font-weight:900; letter-spacing:.08em; color:#efbac8; } footer p { font-size:12px; color:#aaa3a5; }
.website-field { position:absolute !important; inset-inline-start:-9999px !important; opacity:0 !important; pointer-events:none !important; }
.admin-dialog { width:min(440px,calc(100% - 30px)); border:0; border-radius:20px; padding:0; box-shadow:0 28px 90px rgba(38,16,23,.28); }
.admin-dialog::backdrop { background:rgba(28,17,20,.58); backdrop-filter:blur(4px); }
.admin-dialog form { position:relative; padding:32px; }
.admin-dialog h2 { margin:0 0 8px; color:var(--wine); }
.admin-dialog p { color:var(--muted); line-height:1.7; margin:0 0 22px; }
.admin-dialog label { display:block; margin:14px 0; }
.dialog-close { position:absolute; top:14px; inset-inline-end:16px; border:0; background:transparent; color:#8b8587; font-size:26px; }

@media (max-width:850px) {
  .topbar { position:static; flex-direction:column; gap:10px; align-items:stretch; padding:12px 18px; }
  .header-actions { position:static; justify-content:center; }
  .brand { justify-content:center; }.brand span { display:none; } nav { width:100%; } nav button { flex:1; }
  .registration-shell { grid-template-columns:1fr; padding:34px 18px 60px; gap:30px; }
  body { background-position:24% center; background-attachment:scroll; }
  .intro-panel { position:static; padding:24px; }.intro-panel h1 { font-size:43px; }.intro-panel p { font-size:16px; }.purpose { margin-top:26px; }
  .field-grid { grid-template-columns:1fr; gap:16px; }.priority-row { grid-template-columns:1fr; }.interest-checklist-grid,[dir="ltr"] .interest-checklist-grid { grid-template-columns:1fr 1fr; }
  .dashboard { padding:34px 18px 60px; }.dashboard-title { align-items:stretch; flex-direction:column; }.dashboard-title h1 { font-size:32px; }.dashboard-actions { flex-direction:column; }.export,.danger-outline { width:100%; }
  .stats { grid-template-columns:1fr; }.toolbar { grid-template-columns:1fr; }.toolbar span { text-align:center; }
  footer { flex-direction:column; gap:4px; text-align:center; }
}

@media (max-width:520px) {
  .interest-checklist-grid,[dir="ltr"] .interest-checklist-grid,.contact-choice-row { grid-template-columns:1fr; }
}
