/* styles.css */
:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #d9dde3;
  --focus: rgba(17, 24, 39, .12);

  --accent: #0f172a;      /* deep navy */
  --accent2: #2563eb;     /* blue highlight */
  --danger: #b91c1c;

  --radius: 14px;
  --shadow: 0 16px 40px rgba(17,24,39,.08);
  
  --bar-height: 121px;
  --bg: rgba(255, 255, 255, 0.73);   /* transparent at top */
}

* { box-sizing: border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

a {
  color: #005f85;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--bar-height);
  background: var(--bg);
  backdrop-filter: blur(10px);
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
  box-shadow: 0 3px 45px rgba(0, 0, 0, 0.15);
}

.topbar.scrolled{
  background: var(--bgSolid);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-weight: 600;
}

.lang-switch a {
  color: #676767;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switch a:hover {
  color: #005f85;
}

.lang-switch a.active {
  color: #005f85;
}

.topbar-inner{
  max-width: 960px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo{
  width: auto;
  height: 65px;
}

.wrap{
  max-width: 920px;
  margin: 56px auto;
  padding: 0 20px;
}

.header{
  margin-bottom: 18px;
}
.header h1{
  margin:0 0 8px;
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: -0.02em;
}
.header p{
  margin:0;
  color: var(--muted);
  line-height: 1.55;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(17,24,39,.05);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.req{
  color: var(--danger);
  margin-left: 4px;
}

.input, .radioBox{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  background: #fff;
}

.input:focus{
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, .12);
}

.help{
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

fieldset{
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}
legend{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.radioGroup{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.radioGroupQuestions4{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.radioGroupQuestions5{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px){
  .radioGroup{ grid-template-columns: 1fr; }
  .radioGroupQuestions4{ grid-template-columns: 1fr; }
  .radioGroupQuestions5{ grid-template-columns: 1fr; }
}

.radioBox{
  display:flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  user-select:none;
}
.radioBox input{
  transform: translateY(1px);
}

.error{
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
}

.banner{
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.banner.success{
  font-weight: bold;
  background: rgba(34, 197, 94, .10);
  border: 1px solid rgba(34, 197, 94, .25);
}

.banner.fail{
  background: rgba(185, 28, 28, .08);
  border: 1px solid rgba(185, 28, 28, .22);
}

.actionsBox{
  margin-top: 22px;
}

.actions{
  display:flex;
  justify-content:flex-end;
  gap: 12px;
}

.actions#register{
  margin-top: 0px;
  
}
.actions#register h3{
  width: 100%;
  justify-content:flex-start;
}

.btn{
  appearance:none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.btn:active{ 
  transform: translateY(1px);
}

.btn.primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .20);
}

.btn.primary:hover{
  background: #0b1223;
}

.btn.ghost{
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(15,23,42,.25);
}

.banner.success a {
  color: #005f85;
  text-decoration: none;
  transition: color 0.2s ease;
}

.banner.success a:hover {
  text-decoration: underline;
}

.footer-container {
  background-color: #373737;
  width: 100%;
  padding: 20px;
}

.footer-links {
  height: auto;
  margin: 0 auto;
  position: relative;
  max-width: 820px;
  height: 120px;
  text-align: left;
  color: #CCCCCC;
}

.footer-links a {
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.link {
    float: left;
    padding: 10px;
    padding-top: 5px;
    padding-bottom: 0px;
}

.footer-copyright {
  background-color: #282828;
  width: 100%;
  padding: 20px;
  text-align: center;
  color: #777777;
}


.hidden {
  display: none;
}

.hidden:target {
  display: block;
}
