:root{
  --navy: #0B1B33;
  --navy-2: #122748;
  --gold: #C8902E;
  --gold-light: #E0AC4F;
  --cream: #F8F6F1;
  --ink: #14213B;
  --grey: #6B7280;
  --green: #2E9E5B;
  --red: #D64545;
  --border: #EFEBE0;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;}
body{
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  min-height:100vh;
  line-height:1.5;
}
a{color:inherit;text-decoration:none;}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 40px;
  border-bottom:1px solid var(--border);
  background:#fff;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand .brand-logo{
  height:38px;
  width:auto;
  display:block;
}
.brand .gold{color:var(--gold);}
.topbar-right{display:flex;align-items:center;gap:20px;font-size:13px;color:var(--grey);}
.topbar-right a:hover{ color:var(--gold); }

.wrap{
  max-width:520px;
  margin:0 auto;
  padding:60px 24px 100px;
}
.wrap.wide{ max-width:900px; }

.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:36px 34px;
  box-shadow:0 8px 28px rgba(11,27,51,0.06);
}

.step-track{
  display:flex;
  gap:6px;
  margin-bottom:32px;
}
.step-track .dot{
  flex:1;
  height:3px;
  border-radius:2px;
  background:var(--border);
}
.step-track .dot.done{ background:var(--gold); }
.step-track .dot.active{ background:var(--gold-light); }

h1{ font-family:'Fraunces', serif; font-size:26px; font-weight:600; color:var(--navy); margin-bottom:8px; }
h2{ font-family:'Fraunces', serif; font-size:20px; font-weight:600; color:var(--navy); margin-bottom:6px; }
p.lead{ color:var(--grey); font-size:14px; margin-bottom:28px; }

label{
  display:block;
  font-size:12.5px;
  color:var(--grey);
  margin-bottom:6px;
  font-weight:600;
  letter-spacing:.3px;
}
input, select{
  width:100%;
  background:var(--cream);
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px 14px;
  color:var(--ink);
  font-size:14.5px;
  font-family:var(--sans);
  margin-bottom:18px;
  transition:border-color .15s ease;
}
input:focus, select:focus{
  outline:none;
  border-color:var(--gold);
  background:#fff;
}
input::placeholder{ color:#B8B2A0; }

.btn{
  width:100%;
  padding:13px 20px;
  border-radius:8px;
  border:none;
  font-size:14.5px;
  font-weight:700;
  cursor:pointer;
  font-family:var(--sans);
  transition:opacity .15s ease, transform .1s ease, background .15s ease;
}
.btn:active{ transform:scale(0.99); }
.btn-gold{
  background:linear-gradient(135deg,var(--gold-light) 60%,var(--gold));
  color:#fff;
}
.btn-gold:hover{ background:#B37E24; }
.btn-gold:disabled{
  background:var(--border);
  color:#B8B2A0;
  cursor:not-allowed;
}
.btn-outline{
  background:#fff;
  border:1px solid var(--border);
  color:var(--ink);
}
.btn-outline:hover{ border-color:var(--gold); color:var(--gold); }

.msg{
  font-size:13px;
  padding:11px 14px;
  border-radius:8px;
  margin-bottom:18px;
  display:none;
}
.msg.show{ display:block; }
.msg.error{ background:rgba(214,69,69,0.08); color:var(--red); border:1px solid rgba(214,69,69,0.25); }
.msg.success{ background:rgba(46,158,91,0.08); color:var(--green); border:1px solid rgba(46,158,91,0.25); }
.msg.info{ background:rgba(200,144,46,0.08); color:#9A6B1F; border:1px solid rgba(200,144,46,0.25); }

.foot-link{
  text-align:center;
  margin-top:22px;
  font-size:13.5px;
  color:var(--grey);
}
.foot-link a{ color:var(--gold); font-weight:600; }

.center-icon{
  width:64px;height:64px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 22px;
  font-size:28px;
}
.center-icon.pending{ background:rgba(200,144,46,0.1); }
.center-icon.approved{ background:rgba(46,158,91,0.1); }
.center-icon.rejected{ background:rgba(214,69,69,0.1); }

.status-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
  padding:5px 11px;
  border-radius:20px;
}
.status-badge.pending{ background:rgba(200,144,46,0.12); color:#9A6B1F; }
.status-badge.approved{ background:rgba(46,158,91,0.12); color:var(--green); }
.status-badge.rejected{ background:rgba(214,69,69,0.12); color:var(--red); }

.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-bottom:14px;
  cursor:pointer;
}
.checkbox-row input[type="checkbox"]{
  width:18px;height:18px;
  margin:0;
  accent-color:var(--gold);
  flex-shrink:0;
  margin-top:1px;
}
.checkbox-row span{ font-size:13.5px; color:var(--grey); line-height:1.5; }

.contract-scroll{
  max-height:420px;
  overflow-y:auto;
  border:1px solid var(--border);
  border-radius:8px;
  padding:22px 24px;
  background:var(--cream);
  font-size:13px;
  color:var(--grey);
  line-height:1.7;
  margin-bottom:24px;
}
.contract-scroll h3{ color:var(--navy); font-size:14px; margin:18px 0 8px; }
.contract-scroll h3:first-child{ margin-top:0; }
.contract-scroll ul{ margin:6px 0 6px 20px; }
.contract-scroll p{ margin-bottom:8px; }

code, .mono{ font-family:var(--mono); }

.loader{
  width:16px;height:16px;
  border:2px solid rgba(255,255,255,0.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .7s linear infinite;
  display:inline-block;
  vertical-align:middle;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

table{ width:100%; border-collapse:collapse; font-size:13px; }
th, td{ padding:10px 12px; text-align:left; border-bottom:1px solid var(--border); }
th{ color:var(--grey); font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.4px; }
tr:hover td{ background:rgba(11,27,51,0.02); }

@media (max-width:640px){
  .topbar{ padding:14px 20px; }
  .wrap{ padding:36px 16px 70px; }
  .panel{ padding:26px 20px; }
}
