/* Apply box-sizing globally to prevent padding overflow */
* {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Outfit';
  src: url('./fonts/Outfit-VariableFont_wght.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}


/* Fixed header styles */
.header {
  position: fixed;
  top: 20px;
  left: 30px;
  right: 30px;
  background: #222;
  color: #fff;
  padding: 1em 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1em;
}

.logo {
  font-weight: bold;
  font-size: 1.2em;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5em;
}

.page-container {
  padding-top: 70px;
}

body {
  background: linear-gradient(135deg, #1A1A1D, #2c2c31);
  color: #ffffff;
  margin: 0;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
}

#page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

#page-container h1 {
  margin-bottom: 1.5rem;
}

p {
  font-size: 0.9em;
  margin-bottom: 1rem;
  color: red;
  font-style: italic;
}

#form-container {
  font-family: "Outfit", sans-serif;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: left;
}

form {
  width: 100%;
  font-family: "Outfit", sans-serif;
}

label {
  display: block;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #ddd;
}

input,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  background-color: #2c2c3b;
  border: 1px solid #444;
  border-radius: 0.5rem;
  color: #eee;
  font-size: 1rem;
  transition: border 0.2s ease;
  font-family: "Outfit", sans-serif;
}

input:focus,
textarea:focus {
  border-color: #a98eff;
  box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.3);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* File input styling */
input[type="file"] {
  display: flex;
  align-items: center;
  background-color: #2c2c3b;
  border: 1px dashed #7f5af0;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.95rem;
  color: #ccc;
  cursor: pointer;
  text-align: center;
  justify-content: center;
  transition: background-color 0.3s ease, border 0.3s ease;
}

input[type="file"]:hover {
  background-color: #34344b;
  border-color: #9a77ff;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #7f5af0, #5c3bba);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  margin-right: 2rem;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #9a77ff, #7152d0);
}

/* Custom radio styles */
input[type="radio"] {
  all: unset;
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  background-color: #2c2c3b;
  border: 2px solid #7f5af0;
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.2s, border 0.2s;
}

input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  background-color: #7f5af0;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="radio"]:hover {
  border-color: #9a77ff;
}

.radio-wrapper {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  color: #eee;
  padding: 0.6rem 0.8rem; /* match input padding */
  border: 1px solid transparent;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.radio-wrapper:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.radio-group {
  margin-bottom: 2rem;
}

button[type="submit"] {
  font-family: "Outfit", sans-serif;
  background: linear-gradient(135deg, #7f5af0, #5c3bba);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  min-width: 120px;
  width: 100%;
  box-sizing: border-box;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #9a77ff, #7152d0);
}

/* Tooltip-ready icon placeholder */
.tooltip-icon {
  display: inline-block;
  margin-left: 0.4rem;
  color: #aaa;
  cursor: help;
  font-size: 0.9rem;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  body {
    padding: 0.5rem;
  }

  #form-container {
    padding: 1rem;
    margin: 0;
    width: 100%;
    max-width: none;
  }

  input,
  textarea,
  button[type="submit"] {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  label {
    font-size: 1rem;
  }

  .radio-wrapper {
    font-size: 1rem;
  }

  input[type="file"] {
    flex-direction: column;
    padding: 1.5rem;
  }
}