/* ===== APPLICATION PAGE - white theme ===== */

.apply-hero {
  padding: 6rem 0 4rem;
  background: var(--bg-subtle, #f7f7f7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.apply-hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.apply-hero__back {
  display: inline-block;
  font-size: 0.875rem;
  color: #5a5a5a;
  margin-bottom: 2rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.apply-hero__back:hover { color: #0a0a0a; }

.apply-hero__title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: #0a0a0a;
}

.apply-hero__subtitle {
  font-size: 1.125rem;
  color: #5a5a5a;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.apply-form-section {
  background: #ffffff;
}

.apply-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.form-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-section:last-of-type { border-bottom: none; }

.form-section__title {
  font-family: 'Russo One', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: #0a0a0a;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

.required { color: #e11d48; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0a0a0a;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder { color: #999; }

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230a0a0a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-file {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-file:focus {
  outline: none;
  border-color: #0a0a0a;
}

.form-file::file-selector-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  background: rgba(12, 12, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.form-hint {
  font-size: 0.8rem;
  color: #5a5a5a;
  margin-top: 0.5rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #0a0a0a;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0a0a0a;
}

.form-actions {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.form-note {
  font-size: 0.85rem;
  color: #5a5a5a;
  margin-top: 1rem;
}

.form-error {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 245, 245, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  color: #7f1d1d;
  font-size: 0.875rem;
}

.apply-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.apply-steps__item {
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.apply-steps__item strong {
  display: block;
  font-family: 'Russo One', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.apply-steps__item span {
  font-size: 0.75rem;
  color: #5a5a5a;
}

@media (max-width: 768px) {
  .apply-steps { grid-template-columns: 1fr; }
}

.form-success[hidden] {
  display: none !important;
}

.form-success {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 2rem;
}

.form-success__content {
  max-width: 500px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 3rem 2rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
}

.form-success__title {
  font-family: 'Russo One', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: #0a0a0a;
  margin-bottom: 1rem;
}

.form-success__text {
  color: #5a5a5a;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.form-success__close {
  margin-top: 0.75rem;
}

.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(225, 29, 72, 0.5);
}

.form-submitting {
  opacity: 0.6;
  pointer-events: none;
}

.form-submitting .btn {
  position: relative;
  color: transparent;
}

.form-submitting .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin: auto;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
