/* Overlay */
#region-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Form */
#regionForm {
  background: #fff;
  padding: 40px 32px 32px 32px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  min-width: 340px;
  max-width: 95vw;
}

/* Header section */
.region-header {
  text-align: center;
  margin-bottom: 18px;
}

.region-header img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.region-header h2 {
  font-size: 1.7em;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.region-desc {
  color: #555;
  font-size: 1em;
  margin-bottom: 8px;
}

/* Label + Select */
#regionForm label {
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

#regionForm select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 24px;
  border: 1.5px solid #b3b3b3;
  border-radius: 8px;
  font-size: 1.08em;
  transition: border 0.2s;
}

#regionForm select:focus {
  border-color: #667eea;
  outline: none;
}

/* Button */
#regionConfirmBtn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s;
}

#regionConfirmBtn:hover {
  background: linear-gradient(45deg, #5b6ce0, #6b4399);
}

#regionConfirmBtn span {
  font-size: 1.2em;
  margin-right: 8px;
}

/* Error message */
#regionError {
  color: red;
  margin-top: 12px;
  display: none;
  text-align: center;
}

/* Role Overlay */
#role-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Role Form */
#roleForm {
  background: #fff;
  padding: 40px 32px 32px 32px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  min-width: 600px;
  max-width: 95vw;
}

/* Role Header */
.role-header {
  text-align: center;
  margin-bottom: 18px;
}

.role-header h2 {
  font-size: 1.7em;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.role-desc {
  color: #555;
  font-size: 1em;
  margin-bottom: 8px;
}

/* Role Cards */
.role-cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.role-card {
  width: 250px;
  height: 180px;
  padding: 20px;
  border: 2px solid #b3b3b3;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.role-card:hover {
  border-color: #667eea;
  background-color: #f0f8ff;
}

.role-card.selected {
  border-color: #667eea;
  background-color: #e6f0ff;
}

.role-card h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.role-card p {
  color: #666;
  font-size: 0.9em;
  margin: 0;
}

/* Role Confirm Button */
#roleConfirmBtn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s;
}

#roleConfirmBtn:hover:not(:disabled) {
  background: linear-gradient(45deg, #5b6ce0, #6b4399);
}

#roleConfirmBtn:disabled {
  background: #e0e0e0;
  cursor: not-allowed;
}

#roleConfirmBtn span {
  font-size: 1.2em;
  margin-right: 8px;
}

/* Role Error */
#roleError {
  color: red;
  margin-top: 12px;
  display: none;
  text-align: center;
}
