﻿body {
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  margin: 0;
  padding: 20px;
}

.institution-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0d3b66;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.2);
}

.institution-banner::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  opacity: 0;
}

.institution-banner__logo {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.institution-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
}

.container {
  background: #fff;
  max-width: 500px;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.2);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input, select, button {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background: #007bff;
  color: #fff;
  border: none;
  margin-top: 15px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

.error {
  color: red;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

.success {
  color: #1f7a1f;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

.personal-section {
  margin-top: 15px;
}

#personalPlaceholder {
  margin-top: 15px;
  font-style: italic;
  color: #555;
}

.personal-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.personal-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) repeat(2, minmax(110px, 1fr));
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
  padding: 6px 0;
}

.personal-name {
  font-weight: 600;
  word-break: break-word;
}

.personal-input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .personal-row {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .institution-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .institution-banner::after {
    display: none;
  }
}
