/* ----------------- Base Styles ----------------- */
html {
  font-size: 72%; /* 1rem ≈ 14.4px */
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  transition: all 0.25s ease-in-out;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 1rem;
  display: flex;
  justify-content: center;
  color: #333;
  line-height: 1.6;
}

main {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin: 2rem auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

h1 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
  color: #1a1a1a;
}

/* ----------------- Form ----------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

label {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ----------------- Input & Textarea ----------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fefefe;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

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

#bioCounter {
  font-size: 0.85rem;
  color: #888;
  text-align: right;
}

/* ----------------- Submit Button ----------------- */
button[type="submit"] {
  background-color: #007bff;
  color: white;
  font-weight: 700;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 86, 179, 0.35);
}

.disabled-btn {
  background-color: #ccc !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ----------------- Terms & Conditions ----------------- */
.terms-container {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-container a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.terms-container a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* ----------------- Notice Box ----------------- */
.notice-box {
  background-color: #eef2f7;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.notice-box strong {
  color: #0071e3;
}

/* ----------------- Invalid Field ----------------- */
.invalid-field {
  border: 2px solid #e74c3c;
  background-color: #ffe6e6;
}

/* ----------------- Tag Inputs ----------------- */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.tag-input input {
  border: 1px solid #ccc;
  padding: 6px 8px;
  font-size: 1rem;
  border-radius: 6px;
  flex: 1;
  min-width: 120px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background-color: #007bff;
  color: white;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.tag .remove-tag {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s ease;
}

.tag .remove-tag:hover {
  color: #ff4d4d;
}

/* ----------------- Required Field Indicator ----------------- */
.required {
  color: red;
  margin-left: 3px;
}

/* ----------------- Responsive Adjustments ----------------- */
@media (min-width: 768px) {
  main {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  main {
    max-width: 720px;
    padding: 3.5rem;
  }
}
