:root {
  --bg-main: #0b0102;
  --bg-deep: #140305;
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.72);
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  --panel-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.14);
  --red: #d31528;
  --red-bright: #ff3b4d;
  --red-dark: #8b0e16;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 59, 77, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(211, 21, 40, 0.16), transparent 30%),
    linear-gradient(180deg, #2a060b 0%, #140305 44%, #0b0102 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.apply-page {
  min-height: 100vh;
  padding: 48px 0 80px;
}

.apply-container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.apply-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.apply-back-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.apply-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
}

.apply-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 59, 77, 0.12), transparent 72%);
  pointer-events: none;
}

.apply-topbar {
  position: relative;
  z-index: 1;
  min-height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.apply-header {
  position: relative;
  z-index: 1;
  padding: 46px 32px 28px;
  text-align: center;
}

.apply-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 59, 77, 0.12);
  border: 1px solid rgba(255, 59, 77, 0.22);
  color: #ffd8dc;
}

.apply-header h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.apply-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.apply-alert {
  position: relative;
  z-index: 1;
  margin: 0 32px 0;
  padding: 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.apply-alert-icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

.apply-alert p {
  margin: 0;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 800;
  color: var(--text);
}

.apply-form {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.apply-field {
  display: grid;
  gap: 10px;
}

.apply-field-full {
  margin-top: 22px;
}

.apply-field label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.apply-field label span {
  color: #ff6b78;
}

.apply-field input,
.apply-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.apply-field input::placeholder,
.apply-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.apply-field input:focus,
.apply-field textarea:focus {
  border-color: rgba(255, 59, 77, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 59, 77, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.apply-field small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.apply-options {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.apply-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.apply-option:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 59, 77, 0.18);
}

.apply-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}

.apply-option span {
  color: var(--text);
  font-weight: 600;
}

.apply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.apply-btn {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: 0.98rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.apply-btn:hover {
  transform: translateY(-2px);
}

.apply-btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 16px 32px rgba(211, 21, 40, 0.28);
}

.apply-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: #fff;
}

.apply-status {
  margin: 18px 0 0;
  text-align: right;
  color: #ffd8dc;
  font-size: 0.94rem;
  min-height: 1.2em;
}

@media (max-width: 780px) {
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .apply-topbar {
    flex-direction: column;
    justify-content: center;
    padding: 12px 18px;
    text-align: center;
  }

  .apply-header,
  .apply-form {
    padding-left: 22px;
    padding-right: 22px;
  }

  .apply-alert {
    margin-left: 22px;
    margin-right: 22px;
    text-align: left;
    justify-content: flex-start;
  }

  .apply-actions {
    justify-content: stretch;
  }

  .apply-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .apply-page {
    padding: 24px 0 48px;
  }

  .apply-container {
    width: min(var(--container), calc(100% - 20px));
  }

  .apply-shell {
    border-radius: 24px;
  }

  .apply-header {
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .apply-header h1 {
    font-size: 2rem;
  }

  .apply-alert p {
    font-size: 0.98rem;
  }

  .apply-field label {
    font-size: 0.95rem;
  }
}
