/* ===== 구독 플로우 (개인정보 고지, 카드 폼, 확인 폼) ===== */

/* 개인정보 고지문 안의 타이포그래피 */
.subscribe-notice {
  font-size: 13px;
  line-height: 1.55;
}
.subscribe-notice .subscribe-notice-title {
  font-weight: 700;
  color: #004b2b;
  margin-bottom: 6px;
}
.subscribe-notice ul {
  margin: 4px 0 8px;
  padding-left: 18px;
}
.subscribe-notice li {
  margin: 2px 0;
}

/* 봇 버블 내부 버튼(동의/취소/제출/이전) 공통 */
.subscribe-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.subscribe-buttons button {
  padding: 6px 12px;
  border-radius: 14px;
  border: 1px solid #004b2b;
  background: #fff;
  color: #004b2b;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.subscribe-buttons button.primary {
  background: #004b2b;
  color: #fff;
}
.subscribe-buttons button:hover:not(:disabled) {
  background: #004b2b;
  color: #fff;
}
.subscribe-buttons button.primary:hover:not(:disabled) {
  background: #00351f;
}
.subscribe-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 인라인 카드 폼 */
.subscribe-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subscribe-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subscribe-form fieldset[disabled] {
  opacity: 0.6;
}
.subscribe-form .field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.subscribe-form label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}
.subscribe-form label .required {
  color: #c0392b;
  margin-left: 3px;
}
.subscribe-form label .optional {
  color: #888;
  font-weight: 400;
  margin-left: 3px;
}
.subscribe-form input[type="text"],
.subscribe-form input[type="tel"],
.subscribe-form select {
  padding: 7px 9px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: #333;
}
.subscribe-form input[type="text"]:focus,
.subscribe-form input[type="tel"]:focus,
.subscribe-form select:focus {
  outline: none;
  border-color: #004b2b;
  box-shadow: 0 0 0 2px rgba(0, 75, 43, 0.15);
}
.subscribe-form .field-error {
  color: #c0392b;
  font-size: 11px;
  min-height: 14px;
}
.subscribe-form .school-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.subscribe-form .school-input input[type="text"] {
  flex: 1;
  min-width: 0;
}
.subscribe-form .school-suffix {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 도움말 텍스트 */
.subscribe-form .field-help {
  font-size: 11px;
  color: #666;
  margin-top: -1px;
}

/* 태그 입력 (관심학과) */
.subscribe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  min-height: 34px;
  position: relative;
}
.subscribe-tags:focus-within {
  border-color: #004b2b;
  box-shadow: 0 0 0 2px rgba(0, 75, 43, 0.15);
}
.subscribe-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 8px;
  background: #e8f3ee;
  color: #004b2b;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.subscribe-tag[data-custom="true"] {
  background: #fdf4d8;
  color: #7a5b00;
}
.subscribe-tag button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  padding: 0 3px;
  line-height: 1;
}
.subscribe-tags input {
  flex: 1 1 80px;
  min-width: 80px;
  border: none;
  outline: none;
  font-size: 13px;
  padding: 2px 4px;
  font-family: inherit;
  background: transparent;
  color: #333;
}

/* 자동완성 드롭다운 */
.subscribe-autocomplete {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 160px;
  overflow-y: auto;
  z-index: 10;
}
.subscribe-autocomplete-item {
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  color: #333;
}
.subscribe-autocomplete-item:hover,
.subscribe-autocomplete-item.active {
  background: #e8f3ee;
  color: #004b2b;
}
.subscribe-autocomplete-item.custom {
  border-top: 1px dashed #d0d7de;
  color: #7a5b00;
  font-style: italic;
}

/* 제출 결과 요약(읽기전용 상태) */
.subscribe-summary {
  font-size: 13px;
  line-height: 1.55;
}
.subscribe-summary dt {
  font-weight: 600;
  color: #555;
  float: left;
  min-width: 64px;
}
.subscribe-summary dd {
  margin: 0 0 2px 70px;
  color: #333;
}
