*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --onesb-navy: #1a237e;
  --onesb-navy-dark: #0d1442;
  --onesb-gold: #c9a227;
  --onesb-gold-light: #e8c84a;
  --onesb-blue: #1565c0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --shadow: 0 4px 24px rgba(26, 35, 126, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 35, 126, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  min-height: 100vh;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--onesb-gold);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 3rem 2rem 4rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left section */
.info-section {
  padding: 2rem 0;
}

.info-section h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--onesb-navy);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
}

.info-section h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--onesb-gold), var(--onesb-gold-light));
  border-radius: 2px;
}

.info-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.info-highlights {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.highlight-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--onesb-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Form section */
.form-section {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-section h2 {
  font-size: 1.35rem;
  color: var(--onesb-navy);
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: var(--error);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--onesb-navy);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error);
}

.field-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: none;
}

.field-error.visible {
  display: block;
}

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

.btn-submit {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--onesb-navy), var(--onesb-blue));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
  font-family: inherit;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Alert messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.alert.visible {
  display: block;
}

.alert-success {
  background: #f0fdf4;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

/* Success state */
.success-panel {
  text-align: center;
  padding: 2rem 1rem;
  display: none;
}

.success-panel.visible {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.success-panel h3 {
  font-size: 1.5rem;
  color: var(--onesb-navy);
  margin-bottom: 0.75rem;
}

.success-panel p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-reset {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--onesb-navy);
  background: transparent;
  border: 2px solid var(--onesb-navy);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.btn-reset:hover {
  background: var(--onesb-navy);
  color: var(--white);
}

#form-content.hidden {
  display: none;
}

.form-footer-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-footer-link a {
  color: var(--onesb-navy);
  font-weight: 600;
  text-decoration: none;
}

.form-footer-link a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--onesb-navy-dark);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--onesb-gold-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-section {
    text-align: center;
    padding: 1rem 0;
  }

  .info-section h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .info-highlights {
    align-items: left;
  }
}

@media (max-width: 600px) {
  .main-content {
    padding: 2rem 1rem 3rem;
  }

  .site-header {
    padding: 1rem;
  }

  .form-section {
    padding: 1.75rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .info-section h1 {
    font-size: 1.75rem;
  }
}
