/* =========================================================================
   제휴 문의 (Ask)
   Figma: Desktop_Ask 7358:20549 / Tablet_Ask 7358:21351 / Mobile 7358:22905
   ========================================================================= */

.ask-hero {
  padding-block: clamp(48px, 6vw, 104px);
  background:
    radial-gradient(ellipse 60% 120% at 88% 10%, rgba(37, 149, 255, 0.18), transparent 62%),
    radial-gradient(ellipse 50% 120% at 96% 90%, rgba(219, 158, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.ask-hero__title {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ask-hero__title em {
  display: block;
  color: var(--primary);
  font-style: normal;
}

.ask-hero__lead {
  margin-top: 20px;
  max-width: 620px;
  color: var(--ink-500);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
}

.ask-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ------------------------------------------------------------------- 폼 */

.ask-form-wrap {
  max-width: 846px;
}

.ask-form {
  display: grid;
  gap: 30px;
}

.ask-field {
  display: grid;
  gap: 12px;
}

.ask-field__label {
  color: var(--ink-800);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.ask-policy {
  max-height: 217px;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.ask-policy > * + * {
  margin-top: 8px;
}

.ask-policy h3 {
  font-size: 13px;
  font-weight: 700;
}

.ask-policy ul {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  list-style: disc;
}

.ask-agree {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--ink-600);
  font-size: 15px;
  font-weight: 500;
}

.ask-agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.ask-agree label {
  cursor: pointer;
}

.ask-row {
  display: grid;
  gap: 20px;
}

.ask-input {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-800);
  font: inherit;
  font-size: 15px;
}

.ask-input::placeholder {
  color: var(--ink-400);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.ask-input:focus-visible {
  border-color: var(--primary);
}

.ask-input--area {
  min-height: 142px;
  resize: vertical;
}

.ask-submit {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.ask-submit__button:disabled {
  background: var(--line);
  cursor: not-allowed;
  transform: none;
}

.ask-status:empty {
  display: none;
}

.ask-status[data-state="success"] {
  color: var(--color-primary, #1a6fd4);
}

.ask-status[data-state="error"] {
  color: #c62828;
}

.ask-status {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 800px) {
  /* Figma 데스크톱/태블릿: 회사명·담당자명 / 연락처·E-mail 은 2열 */
  .ask-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
