/* =====================================================
   APPLY SERVICE / CONTACT FORMS
===================================================== */
.apply-service-page {
  min-height: auto;
  padding-top: calc(var(--nav-offset) + 18px);
  padding-bottom: 92px;
  background:
    radial-gradient(circle at 18% 12%, var(--surface-strong), transparent 30%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-alt) 58%, var(--page-bg) 100%);
}

.apply-service-wrap {
  max-width: 1180px;
}

.apply-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.apply-brief {
  position: sticky;
  top: 96px;
  border-radius: 26px;
  padding: 28px;
  background:
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft)),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.apply-brief h1 {
  margin: 12px 0 16px;
  color: var(--text-strong);
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1;
  font-weight: 650;
}

.apply-brief p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.apply-brief-points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.apply-brief-points span {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--button-muted-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.service-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apply-form-panel {
  border-radius: 26px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.form-step-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft)),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  text-align: left;
}

.step-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.step-badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 0.8rem;
  font-weight: 900;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 750;
  margin: 0 0 6px;
  color: var(--text-strong);
}

.step-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 750;
  font-size: 0.86rem;
}

.custom-input {
  border-radius: 16px;
  min-height: 54px;
  padding: 14px 16px;
}

textarea.custom-input {
  min-height: 132px;
  resize: vertical;
}

.form-submit {
  position: sticky;
  bottom: 18px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  border-radius: 22px;
  padding: 14px;
  background: var(--admin-topbar-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.form-submit .btn-premium {
  min-width: 210px;
  border: 0;
}

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

  .apply-brief {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .apply-service-page {
    padding-top: 92px;
  }

  .apply-brief,
  .apply-form-panel,
  .form-step-card {
    border-radius: 20px;
  }

  .apply-brief,
  .form-step-card {
    padding: 20px;
  }

  .apply-form-panel {
    padding: 12px;
  }

  .step-card-head {
    gap: 12px;
  }

  .form-submit {
    justify-content: stretch;
  }

  .form-submit .btn-premium {
    width: 100%;
    max-width: none;
  }
}
