:root {
  --rf-space: #030712;
  --rf-space-veil: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.85));
  --rf-panel: rgba(15, 23, 42, 0.95);
  --rf-panel-border: rgba(255, 255, 255, 0.08);
  --rf-glow: rgba(212, 175, 55, 0.12);
  --rf-gold: #d4af37;
  --rf-cyan: #35d1ff;
  --rf-error: #ff6b6b;
  --rf-success: #4ade80;
  --rf-text: #f8fafc;
  --rf-text-muted: #94a3b8;
  --rf-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

body.recruitment-form-page {
  padding-top: 90px;
  background: var(--rf-space);
  background-image: radial-gradient(circle at 15% 15%, rgba(52, 211, 153, 0.045), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.05), transparent 60%);
}

.rf-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.rf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.4), rgba(15, 23, 42, 0.85)),
    var(--rf-hero-image, url("../img/generated/recruit_hero.webp")) center/cover no-repeat;
  filter: brightness(0.85);
  z-index: 0;
}

.rf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.25), transparent 55%);
  mix-blend-mode: screen;
  z-index: 1;
}

.rf-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.rf-hero-title {
  font-family: var(--font-serif, "Shippori Mincho", serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.rf-hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--rf-text-muted);
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 30px;
  margin: 0 auto;
  max-width: 650px;
  line-height: 1.8;
}

.recruitment-page-wrapper {
  position: relative;
  z-index: 10;
  padding: 100px 20px 120px;
}

.recruitment-container {
  max-width: 960px;
  margin: 0 auto;
}

.rf-card {
  background: var(--rf-panel);
  border-radius: 30px;
  border: 1px solid var(--rf-panel-border);
  box-shadow: var(--rf-shadow);
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.rf-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.rf-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: radial-gradient(circle at 20% 20%, rgba(53, 209, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(212, 175, 55, 0.25), transparent 50%);
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.rf-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.rf-header__sub {
  font-family: var(--font-en, "Cinzel", serif);
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  color: var(--rf-cyan);
  display: block;
  margin-bottom: 15px;
}

.rf-header__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.rf-header__desc {
  color: var(--rf-text-muted);
  line-height: 1.9;
  max-width: 680px;
  margin: 0 auto;
}

.rf-step {
  position: relative;
  margin-bottom: 50px;
  padding: 35px;
  border-radius: 20px;
  background: rgba(4, 7, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.rf-step:last-child {
  margin-bottom: 0;
}

.rf-step__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.rf-step__number {
  background: linear-gradient(135deg, var(--rf-gold), #fffbeb);
  color: #0f172a;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.rf-step__title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rf-step__title i {
  color: var(--rf-gold);
}

.rf-group {
  margin-bottom: 24px;
  position: relative;
}

.rf-input-wrapper {
  position: relative;
}

.rf-label {
  display: block;
  font-size: 0.9rem;
  color: var(--rf-text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.rf-label--floating {
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--rf-text-muted);
  transition: all 0.25s ease;
  pointer-events: none;
}

.rf-required {
  color: var(--rf-error);
  font-size: 0.8rem;
  margin-left: 6px;
}

.rf-input,
.rf-select,
.rf-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: var(--rf-text);
  padding: 16px 18px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rf-input:focus,
.rf-select:focus,
.rf-textarea:focus {
  border-color: var(--rf-gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
  background: rgba(15, 23, 42, 0.85);
  outline: none;
}

.rf-input:not(:placeholder-shown) + .rf-label--floating,
.rf-input:focus + .rf-label--floating,
.rf-textarea:not(:placeholder-shown) + .rf-label--floating,
.rf-textarea:focus + .rf-label--floating {
  transform: translateY(-28px) scale(0.85);
  color: var(--rf-gold);
}

.rf-select {
  appearance: none;
  padding-right: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d4af37' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.rf-textarea {
  resize: vertical;
  min-height: 140px;
}

.rf-note {
  display: block;
  font-size: 0.85rem;
  color: var(--rf-text-muted);
  margin-top: 8px;
}

.rf-file-upload {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: border 0.2s ease, background 0.2s ease;
  background: rgba(2, 6, 23, 0.6);
}

.rf-file-upload:hover {
  border-color: var(--rf-gold);
  background: rgba(2, 6, 23, 0.75);
}

.rf-file-upload input[type="file"] {
  display: none;
}

.rf-file-label {
  display: block;
  cursor: pointer;
}

.rf-file-icon {
  font-size: 2.2rem;
  color: var(--rf-cyan);
  margin-bottom: 12px;
  display: block;
}

.rf-file-text {
  font-weight: 700;
  color: var(--rf-text);
}

.rf-file-subtext {
  font-size: 0.85rem;
  color: var(--rf-text-muted);
  margin-top: 6px;
}

.rf-error-msg {
  font-size: 0.85rem;
  color: var(--rf-error);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rf-error-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rf-input.has-error,
.rf-select.has-error,
.rf-textarea.has-error {
  border-color: var(--rf-error);
  background: rgba(127, 29, 29, 0.2);
}

.rf-submit-wrapper {
  text-align: center;
  margin-top: 30px;
}

.rf-btn {
  border: none;
  border-radius: 999px;
  padding: 18px 50px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f172a;
  background: linear-gradient(120deg, #fff5d7, var(--rf-gold));
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.rf-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.45);
}

.rf-btn i {
  transition: transform 0.2s ease;
}

.rf-btn:hover i {
  transform: translateX(4px);
}

.rf-btn.is-loading {
  color: rgba(15, 23, 42, 0.6);
}

.rf-btn-loader {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(15, 23, 42, 0.3);
  border-top-color: rgba(15, 23, 42, 0.8);
  animation: rf-spin 0.8s linear infinite;
}

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

.rf-form-disclaimer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--rf-text-muted);
}

.rf-form-disclaimer a {
  color: var(--rf-gold);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .rf-card {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .rf-step {
    padding: 25px 20px;
  }

  .rf-hero {
    min-height: 50vh;
  }

  .rf-btn {
    width: 100%;
    justify-content: center;
  }
}

