/* Inter Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #1F3864;
  --navy2: #2E4D7B;
  --gold: #FFC20E;
  --amber: #FFF2CC;
  --amber-tx: #7A5C00;
  --alt: #F1F5F9;
  --line: #E2E8F0;
  --txt: #0F172A;
  --muted: #64748B;
  --white: #FFFFFF;
  --bg-main: #F8FAFC;
  --success: #059669;
  --error: #DC2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--txt);
  background-color: var(--bg-main);
  line-height: 1.55;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.brandbar {
  background: var(--navy);
  color: var(--white);
  padding: 24px 20px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brandbar .small {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 13px;
  text-transform: uppercase;
}

.brandbar h1 {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.note {
  background: var(--amber);
  color: var(--amber-tx);
  font-weight: 600;
  text-align: center;
  padding: 14px 20px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 24px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

h2.section {
  background: var(--navy2);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding: 12px 20px;
  border-radius: 8px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 4px rgba(46, 77, 123, 0.1);
}

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

.req:after {
  content: " *";
  color: var(--error);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--txt);
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy2);
  box-shadow: 0 0 0 3px rgba(46, 77, 123, 0.15);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 20px;
}

.btn-remove {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-remove:hover {
  background: #FCA5A5;
  color: #7F1D1D;
}

.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background: var(--navy2);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 10px;
  text-align: left;
}

td {
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--white);
}

tr:nth-child(even) td {
  background: var(--alt);
}

td input, td select {
  border: none;
  border-radius: 0;
  padding: 10px;
  background: transparent;
}

td input:focus, td select:focus {
  box-shadow: none;
  background: #FFFDEB;
  outline: none;
}

td.sno {
  width: 48px;
  text-align: center;
  font-weight: 700;
  color: var(--navy2);
  background: var(--white);
}

.scroll {
  overflow-x: auto;
  border-radius: 8px;
  border: 1.5px solid var(--line);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-go {
  background: var(--navy);
  color: var(--white);
  margin-top: 24px;
  box-shadow: 0 4px 6px rgba(31, 56, 100, 0.15);
}

.btn-go:hover {
  background: var(--navy2);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(31, 56, 100, 0.2);
}

.btn-add {
  background: var(--gold);
  color: #3A2C00;
  margin-top: 16px;
  font-size: 14px;
  padding: 10px 18px;
  box-shadow: 0 2px 4px rgba(255, 194, 14, 0.15);
}

.btn-add:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.ok {
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  color: #065F46;
  padding: 24px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 24px;
  box-shadow: 0 2px 4px rgba(6, 95, 70, 0.03);
}

.err {
  background: #FDF2F2;
  border: 1.5px solid #FDE8E8;
  color: #9B1C1C;
  padding: 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-weight: 600;
}

.links a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 18px;
  text-decoration: none;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.links a:hover {
  background: var(--alt);
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media(max-width:768px){
  .grid2, .grid3, .grid4 {
    grid-template-columns: 1fr;
    gap: 12px 0;
  }
  .brandbar h1 {
    font-size: 22px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .btn-action-container {
    flex-direction: column-reverse;
    gap: 12px;
  }
}
