:root {
  --navy: #0f1b2d;
  --navy-light: #16273f;
  --gold: #c9a24a;
  --text: #1c2430;
  --muted: #6b7686;
  --border: #e3e7ee;
  --bg: #f6f7f9;
  --ok: #1f8a4c;
  --err: #c0392b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--navy);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.topbar .brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 32px 16px 60px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 10px 30px rgba(15, 27, 45, 0.06);
}

h1 {
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--navy);
}

.sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 26px;
  line-height: 1.5;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.15);
}

.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row input {
  flex: 1;
  min-width: 0;
}

.country-picker {
  position: relative;
  flex: 0 0 112px;
}

.country-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}

.country-btn:hover { border-color: var(--gold); }

.country-btn .flag {
  font-size: 16px;
  line-height: 1;
}

.country-btn .dial {
  font-weight: 500;
  white-space: nowrap;
}

.country-btn .chev {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.country-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 270px;
  max-width: 80vw;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 27, 45, 0.16);
  z-index: 20;
  overflow: hidden;
}

.country-panel.open { display: block; }

.country-search {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.country-list {
  max-height: 230px;
  overflow-y: auto;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.country-item:hover { background: var(--bg); }
.country-item.active { background: rgba(201, 162, 74, 0.1); }

.country-item .flag { font-size: 16px; flex-shrink: 0; }
.country-item .name { flex: 1; color: var(--text); }
.country-item .dial-code { color: var(--muted); font-size: 13px; }

.country-list::-webkit-scrollbar { width: 6px; }
.country-list::-webkit-scrollbar-track { background: transparent; }
.country-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.radio-row {
  display: flex;
  gap: 10px;
}

.radio-opt {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s, background .15s;
}

.radio-opt input { display: none; }

.radio-opt.selected {
  border-color: var(--gold);
  background: rgba(201, 162, 74, 0.08);
  color: var(--navy);
}

.readonly-box {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}

button.submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

button.submit:hover { background: var(--navy-light); }
button.submit:disabled { opacity: 0.6; cursor: not-allowed; }

.msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.msg.ok {
  display: block;
  background: rgba(31, 138, 76, 0.1);
  color: var(--ok);
}

.msg.err {
  display: block;
  background: rgba(192, 57, 43, 0.1);
  color: var(--err);
}

.success-view {
  text-align: center;
  padding: 10px 0;
}

.success-view .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(31, 138, 76, 0.12);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}

.success-view h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--navy);
}

.success-view p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
