/* ============================================================
   전기요금절감.kr - 문의 폼 (inquiry form) 스타일
   site.css 공통 디자인 토큰과 조화되도록 구성
   ============================================================ */

.contact-section {
  background: #eef3f7;
  border-top: 1px solid #dce6ee;
  padding: 3.5rem 0;
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #dde7ee;
  border-radius: 16px;
  padding: 2rem 2rem 2.2rem;
  box-shadow: 0 10px 30px rgba(8, 27, 52, 0.08);
}

.contact-form h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  color: #081b34;
  letter-spacing: -0.02em;
}

.contact-form .contact-sub {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  color: #5a6b7c;
  line-height: 1.6;
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c3147;
}

.form-row label .req {
  color: #d64541;
  margin-left: 0.2rem;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row textarea,
.form-row select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1c3147;
  border: 1px solid #c6d2dd;
  border-radius: 8px;
  background: #fafcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: #2e6fb8;
  box-shadow: 0 0 0 3px rgba(46, 111, 184, 0.15);
  background: #ffffff;
}

.form-row input[error],
.form-row textarea[error] {
  border-color: #d64541;
}

.form-row textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row .hint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #8294a5;
}

/* 문의 유형 - 2열 라디오 카드 */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.radio-option {
  position: relative;
  display: block;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio-option .radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c6d2dd;
  border-radius: 8px;
  background: #fafcfe;
  font-size: 0.9rem;
  color: #1c3147;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.radio-option input:checked + .radio-label {
  border-color: #2e6fb8;
  background: #eaf2fb;
  color: #081b34;
  font-weight: 600;
}

.radio-option .radio-dot {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 2px solid #9db0c1;
  border-radius: 50%;
  background: #fff;
  position: relative;
}

.radio-option input:checked + .radio-label .radio-dot {
  border-color: #2e6fb8;
}

.radio-option input:checked + .radio-label .radio-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #2e6fb8;
}

/* 개인정보 동의 */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.2rem 0 1.2rem;
  font-size: 0.85rem;
  color: #5a6b7c;
  line-height: 1.5;
}

.consent-row input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: #2e6fb8;
}

/* 제출 버튼 */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-submit {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: #081b34;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-submit:hover {
  background: #12355e;
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  background: #8593a3;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.82rem;
  color: #8294a5;
  line-height: 1.5;
}

/* 상태 메시지 */
.form-status {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  display: none;
}

.form-status.ok {
  display: block;
  background: #e7f5ec;
  border: 1px solid #b8e0c8;
  color: #1e6b3a;
}

.form-status.err {
  display: block;
  background: #fdeeee;
  border: 1px solid #f4c4c4;
  color: #9c2b26;
}

/* 전화 대안 안내 (폼 아래) */
.contact-alt {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #33485e;
}

.contact-alt a {
  color: #2e6fb8;
  font-weight: 700;
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .radio-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 1.4rem 1.2rem 1.6rem;
  }
}
