@font-face {
  font-family: 'The Seasons';
  src: url('fonts/Fontspring-DEMO-theseasons-reg.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #f5f0eb;
}

header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.site-logo {
  font-family: 'The Seasons', serif;
  font-size: 1.8rem;
  font-weight: normal;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.apostrophe {
  font-family: 'Inter', sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.form-card {
  background: #fff;
  border: 1px solid #e8e3de;
  border-radius: 12px;
  padding: 2rem;
}

.form-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.role-name {
  display: inline-block;
  background: #e8ece5;
  color: #3a3a3a;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3a3a3a;
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: #c25a4a;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  border: 1px solid #e8e3de;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #7a8a6e;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group .hint {
  font-size: 0.78rem;
  color: #9a9590;
  margin-top: 0.3rem;
}

.divider {
  border: none;
  border-top: 1px solid #e8e3de;
  margin: 1.5rem 0;
}

.attachment-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option label {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border: 1px solid #e8e3de;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option input:checked + label {
  border-color: #7a8a6e;
  background: #e8ece5;
  color: #3a3a3a;
  font-weight: 500;
}

.upload-area {
  display: none;
}

.upload-area.active {
  display: block;
}

.file-drop {
  border: 2px dashed #e8e3de;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-drop:hover {
  border-color: #7a8a6e;
}

.file-drop p {
  font-size: 0.88rem;
  color: #9a9590;
}

.file-drop .browse {
  color: #7a8a6e;
  font-weight: 500;
  text-decoration: underline;
}

.file-drop input {
  display: none;
}

.file-selected {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: #e8ece5;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #3a3a3a;
}

.file-selected.show {
  display: flex;
}

.file-selected .remove {
  margin-left: auto;
  background: none;
  border: none;
  color: #9a9590;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.video-or {
  text-align: center;
  font-size: 0.82rem;
  color: #9a9590;
  margin: 1rem 0;
}

.record-section {
  text-align: center;
}

.btn-record {
  display: inline-block;
  background: none;
  border: 1px solid #7a8a6e;
  color: #7a8a6e;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-record:hover {
  background: #7a8a6e;
  color: #fff;
}

.btn-record.recording {
  background: #c25a4a;
  border-color: #c25a4a;
  color: #fff;
}

.camera-preview {
  display: none;
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  margin: 1rem auto;
  background: #000;
}

.camera-preview.show {
  display: block;
}

.record-controls {
  display: none;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.record-controls.show {
  display: flex;
}

.btn-rerecord {
  background: none;
  border: 1px solid #e8e3de;
  color: #3a3a3a;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
}

.progress-bar {
  display: none;
  height: 4px;
  background: #e8e3de;
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-bar.show {
  display: block;
}

.progress-bar .fill {
  height: 100%;
  background: #7a8a6e;
  width: 0%;
  transition: width 0.3s;
}

.btn-submit {
  display: block;
  width: 100%;
  background: #7a8a6e;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.85;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.success-message {
  display: none;
  text-align: center;
  padding: 2rem;
}

.success-message.show {
  display: block;
}

.success-message h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-message p {
  font-size: 0.88rem;
  color: #3a3a3a;
  line-height: 1.65;
}

.success-message a {
  display: inline-block;
  margin-top: 1rem;
  color: #7a8a6e;
  font-weight: 500;
  text-decoration: none;
}

.error-msg {
  color: #c25a4a;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  display: none;
}

.error-msg.show {
  display: block;
}

@media (max-width: 600px) {
  header {
    padding: 1.5rem 1rem 1rem;
  }

  .site-logo {
    font-size: 1.5rem;
  }

  main {
    padding: 0.75rem 1rem 2rem;
  }

  .form-card {
    padding: 1.4rem;
  }

  .form-card h2 {
    font-size: 1.15rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.6rem;
  }
}