:root {
  --primary: #003366;
  --accent: #00a1c9;
  --success: #10b981;
  --bg: #f8fafc;
  --card-border: #e2e8f0;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  margin: 0;
  color: #1e293b;
  line-height: 1.5;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 80px; /* perfect for navbar */
  width: auto;
}

/* Top Header Navigation */
.navbar {
  background: #fff;
  padding: 0.1rem 1%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* .brand { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; } */

.container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Intro Text */
.intro {
  text-align: center;
  margin-bottom: 2.5rem;
}
.intro h1 {
  font-size: 1.875rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.intro p {
  color: #64748b;
  font-size: 1rem;
}

/* Modern Card */
.main-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-header {
  background: var(--primary);
  padding: 1.5rem 2rem;
  color: #fff;
}

.form-section {
  padding: 2rem;
  border-bottom: 1px solid #f1f5f9;
}
.section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form Grid - 2 Column */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
}
label {
  font-size: 0.813rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

input,
select {
  height: 48px;
  padding: 0 1rem;
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.05);
}

/* Footer Actions */
.form-footer {
  padding: 1.5rem 2rem;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.btn-submit {
  background: var(--primary);
  color: white;
  padding: 0.875rem 2.5rem;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 51, 102, 0.2);
}

.btn-submit:hover {
  background: #002244;
  transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .form-footer {
    flex-direction: column;
    text-align: center;
  }
  .btn-submit {
    width: 100%;
  }
}

.error-text {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.input-error {
  border-color: #dc2626 !important;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #1969bb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

