* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em;
  text-align: center;
}

.job-form {
  background: #ede9e0;
  padding: 2em;
  border-radius: 1em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  max-width: 500px;
  width: 100%;
}

.job-form h2 {
  margin-bottom: 1.5em;
  color: #334248;
}

.form-group {
  margin-bottom: 1.2em;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #334248;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #334248;
  border-radius: 0.5em;
  background: #fff;
  color: #334248;
  font-size: 1em;
}

.form-group input::placeholder {
  color: #999;
}

button[type="submit"] {
  background: #334248;
  color: #ede9e0;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 0.5em;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  margin-top: 1em;
}

button[type="submit"]:hover {
  background: #263339;
}

@media (max-width: 600px) {
  .job-form {
    padding: 1.5em;
  }
}

/* Tooltip */
.input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.tooltip-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  background: #007bff;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
}

.gender-tooltip-icon {
  top: 68%;
}

.tooltip-text {
  visibility: hidden;
  width: 60%;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  bottom: 110%;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.tooltip-icon:hover + .tooltip-text,
.tooltip-text.show {
  visibility: visible;
  opacity: 1;
}

/* Notify */
.notify-message {
  color: #fff;
  background-color: #444;
  padding: 1em;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  max-width: 400px;
  margin: 20px auto 0;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.4s ease-in-out;
  z-index: 1000;
  transition: all 0.3s ease;
}

.notify-message.success {
  background-color: #27ae60;
}

.notify-message.warning {
  background-color: #f1c40f;
  color: #333;
}

.notify-message.error {
  background-color: #e74c3c;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}

/* Disabled website */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(128, 128, 128, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #555;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fix for user-agent-stylesheet automatic form margin bottom of 1em that I DON'T WANT, but thanks. */
form {
  margin-top: 0;
  margin-bottom: 0;
}