* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #1f2937;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Header */
.bank-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.bank-header .container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.brand .logo { font-size: 28px; }
.bank-header nav { display: flex; gap: 24px; }
.bank-header nav a { color: white; text-decoration: none; font-size: 14px; opacity: 0.85; }
.bank-header nav a:hover, .bank-header nav a.active { opacity: 1; border-bottom: 2px solid white; padding-bottom: 2px; }

/* Main */
main { padding: 40px 0; }
h1 { font-size: 28px; margin: 0 0 8px 0; color: #1e3a8a; }
.subtitle { color: #6b7280; margin: 0 0 32px 0; }

/* Form */
form {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

fieldset {
  border: none;
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  margin: 0;
}
fieldset:first-of-type { border-top: none; padding-top: 0; }

legend {
  font-size: 16px;
  font-weight: 600;
  color: #1e40af;
  padding: 0 8px 8px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}
.form-group .req { color: #dc2626; }

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Buttons */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: #1e40af; color: white; }
.btn-primary:hover { background: #1e3a8a; }
.btn-secondary { background: #e5e7eb; color: #374151; }
.btn-secondary:hover { background: #d1d5db; }

/* Modal */
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal.hidden { display: none; }
.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-content h2 { margin: 0 0 16px 0; color: #1e3a8a; }
.modal-content pre {
  background: #f3f4f6;
  padding: 16px;
  border-radius: 6px;
  font-size: 12px;
  overflow-x: auto;
  margin-bottom: 16px;
}

/* Footer */
.bank-footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 20px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
}
.bank-footer strong { color: #fbbf24; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .bank-header .container { flex-direction: column; gap: 12px; }
  .bank-header nav { gap: 16px; }
}
