/* /css/add_write.css */

/* ==============================================
   등록 레이어 기본 설정
============================================== */

.write-entry-personal {
  display: block;
  width: 100%;
  margin: 32px 0 20px;
  padding: 1.5rem;
  text-align: left;
  border: 2px solid #27313d;
  border-radius: 1.25rem;
  background: #fff;
  cursor: pointer;
}
.write-entry-personal strong,
.write-entry-business strong {
  display: block;
  font-size: 1.35rem;
}

.write-entry-personal span,
.write-entry-business span {
  display: block;
  margin-top: 0.5rem;
  color: #6b7280;
}

.write-entry-business.is-disabled {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  background: #f8fafc;
  color: #6b7280;
}

.write-entry-business em {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 0.75rem;
  font-style: normal;
}

.write-entry-company-apply {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.65rem;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.write-entry .write-entry__description + .write-entry-personal {
  margin-top: 32px;
}

.write-form-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: inherit;
}

.write-form-layer *,
.write-form-layer *::before,
.write-form-layer *::after {
  box-sizing: border-box;
}

.write-form-layer__dim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.write-form-layer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: calc(100% - 48px);
  max-width: 600px;
  height: calc(100dvh - 48px);
  max-height: 900px;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

/* ==============================================
   등록 레이어 상단
============================================== */

.write-form-layer__header {
  position: relative;
  flex: 0 0 auto;
  height: 92px;
  padding: 0 34px;
  background: #fff;
}

.write-form-layer-close {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17191c;
  font-family: Arial, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.write-form-layer-close:hover {
  color: #000;
}

.write-form-layer-close:focus-visible {
  outline: 0;
  outline-offset: 2px;
}

/* ==============================================
   단계 진행률
============================================== */

.write-form-progress {
  position: absolute;
  right: 34px;
  bottom: 0;
  left: 34px;
  height: 4px;
  overflow: hidden;
  background: #e8eaed;
  border-radius: 999px;
}

.write-form-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: #4b5565;
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* ==============================================
   등록 레이어 본문
============================================== */

.write-form-layer__body {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

/* ==============================================
   로딩 화면
============================================== */

.write-form-layer__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: 40px;
  color: #6b7280;
  font-size: 15px;
  text-align: center;
}

.write-form-layer__loading::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border: 3px solid #e5e7eb;
  border-top-color: #111827;
  border-radius: 50%;
  animation: write-form-loading 0.8s linear infinite;
}

@keyframes write-form-loading {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================================
   오류 화면
============================================== */

.write-form-layer__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: 40px;
  color: #6b7280;
  font-size: 15px;
  text-align: center;
}

.write-form-layer__error p {
  margin: 0;
}

.write-form-layer__error button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 20px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: #252c35;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ==============================================
   개인/기업 선택 화면
============================================== */

.write-entry,
.my-write-step {
  width: 100%;
  min-height: 100%;
  padding: 52px 38px 38px;
  background: #fff;
}

.write-entry h2,
.my-write-title {
  margin: 0 0 1rem;
  color: #17191c;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -1.2px;
  word-break: keep-all;
}

.write-entry > a,
.write-entry > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 132px;
  margin: 0 0 14px;
  padding: 24px 28px;
  border: 1px solid #d9dde3;
  border-radius: 16px;
  background: #fff;
  color: #17191c;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.write-entry > a:hover,
.write-entry > button:hover {
  border-color: #252c35;
  background: #f9fafb;
}

.write-entry > a:active,
.write-entry > button:active {
  transform: scale(0.99);
}

.write-entry > a:focus-visible,
.write-entry > button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.write-entry > a strong,
.write-entry > button strong {
  display: block;
  color: #17191c;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.write-entry > a span,
.write-entry > button span {
  display: block;
  margin-top: 7px;
  color: #697386;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* ==============================================
   단계형 등록폼
============================================== */

.my-write-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.my-write-steps {
  flex: 1 1 auto;
  width: 100%;
}

.my-write-step {
  display: none;
}

.my-write-step.is-active {
  display: block;
  animation: my-write-step-show 0.2s ease;
}

@keyframes my-write-step-show {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==============================================
   단계 제목 및 설명
============================================== */

.my-write-description {
  margin: 12px 0 0;
  color: #687284;
  font-size: 1rem;
  line-height: 1.65;
  word-break: keep-all;
}

.my-write-section {
  margin-top: 34px;
}

.my-write-section:first-child {
  margin-top: 0;
}

.my-write-section-title {
  margin: 0 0 14px;
  color: #24272b;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.my-write-help {
  margin: 9px 0 0;
  color: #9299a5;
  font-size: 13px;
  line-height: 1.55;
}

/* ==============================================
   선택 카드
============================================== */

.my-write-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 34px;
}

.my-write-choice-list.is-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-write-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 20px 24px;
  border: 1px solid #d9dde3;
  border-radius: 1rem;
  background: #fff;
  color: #17191c;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.my-write-choice:hover {
  border-color: #939aa5;
  background: #fafafa;
}

.my-write-choice.is-selected {
  border: 2px solid #252c35;
  background: #f5f6f7;
  box-shadow: 0 0 0 1px #252c35;
}

.my-write-choice strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.my-write-choice span {
  display: block;
  margin-top: 5px;
  color: #687284;
  font-size: 14px;
  line-height: 1.5;
}

/* 주차 가능 여부 전용 */
.request-parking-field {
  margin-top: 18px;
}

.my-write-label.request-parking-label {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 500;
}

.request-parking-options {
  margin-top: 12px;
}

.request-parking-choice {
  padding: 16px 20px;
}

.request-parking-choice strong {
  font-size: 16px;
  font-weight: 500;
}

/* ==============================================
   입력 필드
============================================== */

.my-write-field {
  margin-top: 26px;
}

.my-write-field:first-child {
  margin-top: 0;
}

.my-write-label {
  display: block;
  margin-bottom: 10px;
  color: #30343a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.my-write-label em {
  color: #ef4444;
  font-style: normal;
}

/* ==============================================
   공통 입력 그룹
   면적·구조·층수·권장업종·특장점 등에 함께 사용
============================================== */

.my-write-group {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e4e7eb;
  border-radius: 18px;
  background: #f8f9fa;
}

.my-write-group__head {
  margin-bottom: 17px;
}

.my-write-group__title {
  display: block;
  margin: 0;
  color: #20242a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.my-write-group__description {
  margin: 5px 0 0;
  color: #858d99;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.my-write-group__body {
  min-width: 0;
}

.my-write-input,
.my-write-select,
.my-write-textarea {
  display: block;
  width: 100%;
  border: 1px solid #d8dce2;
  border-radius: 14px;
  background: #fff;
  color: #17191c;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.my-write-input,
.my-write-select {
  height: 58px;
  padding: 0 16px;
}

.my-write-textarea {
  min-height: 150px;
  padding: 16px;
  line-height: 1.65;
  resize: vertical;
}

.my-write-input:focus,
.my-write-select:focus,
.my-write-textarea:focus {
  border-color: #252c35;
  box-shadow: 0 0 0 2px rgba(37, 44, 53, 0.1);
}

.my-write-input::placeholder,
.my-write-textarea::placeholder {
  color: #a3a9b3;
}

.my-write-input[readonly] {
  background: #f6f7f8;
  color: #6b7280;
}

/* ==============================================
   단위 포함 입력 필드
============================================== */

.my-write-input-unit {
  position: relative;
}

.my-write-input-unit .my-write-input {
  padding-right: 68px;
}

.my-write-input-unit__text {
  position: absolute;
  top: 50%;
  right: 18px;
  color: #858d99;
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ==============================================
   입력 필드 가로 배치
============================================== */

.my-write-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.my-write-field-row.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ==============================================
   체크박스 및 라디오
============================================== */

.my-write-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
}

.my-write-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #30343a;
  font-size: 15px;
  cursor: pointer;
}

.my-write-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #252c35;
}

/* ==============================================
   기업 매물 정보 선택 카드 및 칩
============================================== */

.listing-option-groups {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-bottom: 10px;
}

.listing-option-group {
  min-width: 0;
}

.listing-option-group__head {
  margin-bottom: 17px;
}

.listing-option-group__head h3 {
  margin: 0;
}

.listing-option-group__head p {
  margin: 5px 0 0;
}

.listing-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.listing-option-chip {
  position: relative;
  display: inline-flex;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.listing-option-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.listing-option-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #fff;
  color: #343941;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  word-break: keep-all;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.listing-option-chip:hover span {
  border-color: #9da5b0;
}

.listing-option-chip input:checked + span {
  border: 1px solid #252c35;
  background: #252c35;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(37, 44, 53, 0.14);
}

.listing-option-chip input:checked + span::before {
  content: none;
}

.listing-option-chip input:focus-visible + span {
  outline: 2px solid #252c35;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .listing-option-groups {
    gap: 14px;
    margin-top: 28px;
  }

  .listing-option-group {
    min-width: 0;
  }

  .listing-option-group__head {
    margin-bottom: 14px;
  }

  .listing-option-chips {
    gap: 8px;
  }

  .listing-option-chip span {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 13px;
  }

  .my-write-group {
    padding: 18px;
    border-radius: 16px;
  }

  .my-write-group__head {
    margin-bottom: 14px;
  }

  .my-write-group__title {
    font-size: 16px;
  }

  .my-write-group__description {
    font-size: 12px;
  }
}

/* ==============================================
   주소 표시
============================================== */

.my-write-address {
  margin-top: 26px;
  padding: 20px;
  border-radius: 14px;
  background: #f5f6f7;
}

.my-write-address__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.my-write-address__title {
  margin: 0;
  color: #17191c;
  font-size: 16px;
  font-weight: 700;
}

.my-write-address__edit {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #7d8591;
  background: transparent;
  color: #7d8591;
  font-size: 14px;
  cursor: pointer;
}

.my-write-address__road,
.my-write-address__jibun {
  margin: 10px 0 0;
  color: #30343a;
  font-size: 14px;
  line-height: 1.55;
}

/* ==============================================
   사진 업로드
============================================== */

.my-write-upload {
  margin-top: 30px;
}

.my-write-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f5;
  color: #25272b;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.my-write-upload-button:hover {
  background: #e9ebed;
}

.my-write-photo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.my-write-photo-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #f3f4f6;
}

.my-write-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-write-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* ==============================================
   글자 수 표시
============================================== */

.my-write-count {
  margin-top: 8px;
  color: #8b929d;
  font-size: 13px;
  text-align: right;
}

/* ==============================================
   이전 및 다음 버튼
============================================== */

.my-write-actions {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 18px 38px 24px;
  border-top: 1px solid #edf0f2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.my-write-actions.is-first-step {
  grid-template-columns: 150px minmax(0, 1fr);
}

.my-write-actions.is-company-intro {
  display: none;
}

.my-write-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.my-write-prev,
.my-write-cancel {
  -webkit-appearance: none;
  appearance: none;
  background: #f1f2f3;
  color: #17191c;
  -webkit-text-fill-color: #17191c;
}

.my-write-next {
  background: #252c35;
  color: #fff;
}

.my-write-prev:hover,
.my-write-cancel:hover {
  background: #e7e9eb;
}

.my-write-next:hover {
  background: #111827;
}

.my-write-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==============================================
   좁은 화면 전체화면 처리
============================================== */

@media (max-width: 768px) {
  .write-form-layer {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #fff;
  }

  .write-form-layer__dim {
    display: none;
  }

  .write-form-layer__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
  }

  .write-form-layer__header {
    flex: 0 0 82px;
    height: 82px;
    padding: 0 20px;
  }

  .write-form-layer-close {
    top: 13px;
    left: 8px;
  }

  .write-form-progress {
    right: 20px;
    left: 20px;
  }

  .write-form-layer__body {
    flex: 1 1 0;
    width: 100%;
    height: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .write-entry,
  .my-write-step {
    min-height: auto;
    padding: 42px 20px 28px;
  }

  .write-entry h2,
  .my-write-title {
    margin-bottom: 1rem;
    font-size: 28px;
  }

  .write-entry > a,
  .write-entry > button {
    min-height: 116px;
    padding: 20px 22px;
    border-radius: 14px;
  }

  .my-write-form {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow: visible;
  }

  .my-write-steps {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .my-write-description {
    font-size: 15px;
  }

  .my-write-actions {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  }

  .my-write-actions.is-first-step {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .my-write-actions button {
    height: 56px;
    font-size: 16px;
  }
}

/* ==============================================
   작은 모바일 최적화
============================================== */

@media (max-width: 480px) {
  .write-entry,
  .my-write-step {
    padding-right: 16px;
    padding-left: 16px;
  }

  .write-entry h2,
  .my-write-title {
    font-size: 26px;
  }

  .write-entry > a span,
  .write-entry > button span {
    font-size: 14px;
  }

  .my-write-choice-list.is-grid-2 {
    gap: 10px;
  }

  .my-write-choice {
    padding: 16px;
  }

  .request-property-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .request-property-choice {
    min-height: 72px;
    padding: 14px 18px;
  }

  .request-property-choice strong {
    font-size: 16px;
    font-weight: 600;
  }

  .my-write-field-row {
    grid-template-columns: 1fr;
  }

  .my-write-field-row.keep-2,
  .request-floor-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-floor-row {
    gap: 10px;
  }

  .request-parking-field {
    margin-top: 14px;
  }

  .my-write-label.request-parking-label {
    font-size: 14px;
    font-weight: 400;
  }

  .request-parking-options {
    margin-top: 10px;
  }

  .request-parking-choice {
    padding: 14px 16px;
  }

  .request-parking-choice strong {
    font-size: 15px;
    font-weight: 500;
  }

  .my-write-photo-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .my-write-actions {
    grid-template-columns: 92px minmax(0, 1fr);
    padding-right: 16px;
    padding-left: 16px;
  }

  .my-write-actions.is-first-step {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .my-write-actions.is-first-step .my-write-prev {
    padding-right: 12px;
    padding-left: 12px;
    white-space: nowrap;
    word-break: keep-all;
  }
}

/* ==============================================
   단계형 폼 화면 및 하단 버튼 고정
============================================== */

.my-write-actions {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  flex: 0 0 auto;
  width: 100%;
  padding: 18px 38px 24px;
}

/* ==============================================
   개인 의뢰 거래 유형 선택 및 아코디언
============================================== */

.request-deal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 34px;
}

/* 선택 완료 후 선택하지 않은 거래 유형 숨김 */
.request-deal-list.has-selection:not(.is-adding)
  .request-deal-card:not(.is-selected) {
  display: none;
}

/* 거래 유형 카드 */
.request-deal-card {
  overflow: hidden;
  border: 1px solid #d9dde3;
  border-radius: 16px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.request-deal-card.is-selected {
  border: 2px solid #252c35;
  background: #f6f7f8;
  box-shadow: 0 0 0 1px #252c35;
}

/* 거래 유형 선택 버튼 */
.request-deal-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 112px;
  padding: 24px 26px;
  border: 0;
  background: transparent;
  color: #17191c;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.request-deal-toggle > span {
  display: block;
  min-width: 0;
}

.request-deal-toggle strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.request-deal-toggle small {
  display: block;
  margin-top: 7px;
  color: #697386;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.request-deal-toggle-icon {
  flex: 0 0 auto;
  color: #252c35;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
}

/* 선택된 거래 유형 가격 입력 영역 */
.request-deal-panel {
  display: none;
  padding: 0 26px 26px;
}

.request-deal-panel .my-write-field {
  margin-top: 0;
}

.request-deal-panel .my-write-field-row {
  align-items: start;
}

.request-deal-panel > .my-write-field-row,
.request-deal-panel > .my-write-field-row + .my-write-field {
  margin-top: 24px;
}

/* 보증금 조정 가능 */
.request-deal-adjustable {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: #30343a;
  font-size: 15px;
  cursor: pointer;
}

.request-deal-adjustable input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #252c35;
}

/* 다른 거래 유형 추가 버튼 */
.request-deal-add {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 76px;
  padding: 18px 24px;
  border: 0;
  border-radius: 16px;
  background: #f3f4f5;
  color: #17191c;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.request-deal-add:hover {
  background: #e9ebed;
}

.request-deal-add span {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

/* 하나 이상 선택했을 때 추가 버튼 표시 */
.request-deal-list.has-selection:not(.is-adding) .request-deal-add {
  display: flex;
}

/* 추가할 거래 유형을 고르는 중에는 추가 버튼 숨김 */
.request-deal-list.is-adding .request-deal-add {
  display: none;
}

/* 모든 거래 유형을 선택하면 추가 버튼 숨김 */
.request-deal-list:has(.request-deal-card:nth-child(1).is-selected):has(
    .request-deal-card:nth-child(2).is-selected
  ):has(.request-deal-card:nth-child(3).is-selected)
  .request-deal-add {
  display: none;
}

/* ==============================================
   모바일 거래 유형
============================================== */

@media (max-width: 480px) {
  .request-deal-toggle {
    min-height: 96px;
    padding: 20px;
  }

  .request-deal-panel {
    padding: 0 20px 22px;
  }

  .request-deal-panel .my-write-field-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .request-deal-panel > .my-write-field-row,
  .request-deal-panel > .my-write-field {
    margin-top: 22px;
  }

  .request-deal-toggle strong {
    font-size: 18px;
  }

  .request-deal-toggle small {
    font-size: 14px;
  }

  .request-deal-add {
    min-height: 68px;
    font-size: 17px;
  }
}

/* ==============================================
   개인 의뢰 실시간 주소 검색
============================================== */

.request-address-search {
  margin-top: 34px;
}

.request-address-search__input {
  position: relative;
}

.request-address-search__input input {
  display: block;
  width: 100%;
  height: 66px;
  padding: 0 64px 0 20px;
  border: 2px solid #252c35;
  border-radius: 16px;
  background: #fff;
  color: #17191c;
  font-family: inherit;
  font-size: 17px;
  outline: none;
}

.request-address-search__input input::placeholder {
  color: #a3a9b3;
}

.request-address-search__input input:focus {
  box-shadow: 0 0 0 3px rgba(37, 44, 53, 0.1);
}

.request-address-search__icon {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 22px;
  height: 22px;
  border: 3px solid #858d99;
  border-radius: 50%;
  transform: translateY(-56%);
  pointer-events: none;
}

.request-address-search__icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: #858d99;
  transform: rotate(45deg);
}

.request-address-search__status {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #687284;
  font-size: 1rem;
  line-height: 1.5;
}

.request-address-search__results {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.request-address-result,
.request-region-result {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #d9dde3;
  border-radius: 1rem;
  background: #fff;
  color: #17191c;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.request-address-result:hover,
.request-region-result:hover {
  border-color: #252c35;
  background: #f9fafb;
}

.request-address-result strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.request-address-result span {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .5rem;
  color: #687284;
  font-size: .9rem;
  line-height: 1.5;
}

.request-address-result span em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: .25rem;
  background: #f1f2f3;
  color: #687284;
  font-size: .8rem;
  font-style: normal;
}

.request-address-result small {
  display: block;
  color: #9299a5;
  font-size: .9rem;
  margin-top:.5rem;
}

.request-address-search__help {
  margin-top: 1.5rem;
  color: #687284;
}

.request-address-search__help strong {
  display: block;
  margin-bottom:.5rem;
  color: #4b5565;
  font-size: 15px;
}

.request-address-search__help p {
  font-size: 14px;
  line-height: 1.6;
}

.request-region-selected {
  display: none;
  margin-top: 28px;
}

.request-region-selected__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #17191c;
  font-size: 15px;
}

.request-region-selected__head strong {
  font-size: 17px;
  font-weight: 700;
}

.request-region-selected__head span,
.request-region-selected__head em {
  color: #858d99;
  font-style: normal;
}

.request-region-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request-region-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid #d9dde3;
  border-radius: 14px;
  background: #f7f8f9;
  color: #17191c;
  font-size: 15px;
  font-weight: 400;
}

.request-region-remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8eaed;
  color: #596273;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

/* ==============================================
   선택된 주소
============================================== */

.request-address-selected {
  display: none;
  margin-top: 34px;
}

.request-address-selected__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.request-address-selected__label {
  margin-bottom: 0;
}

.request-address-modify {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #858d99;
  background: transparent;
  color: #858d99;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.request-address-selected__box {
  margin-top: 16px;
  padding: 20px;
  border-radius: 14px;
  background: #f5f6f7;
}

.request-address-selected__road {
  margin: 0;
  color: #17191c;
  font-size: 15px;
  line-height: 1.6;
}

.request-address-selected__jibun {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 9px 0 0;
  color: #4b5565;
  font-size: 14px;
  line-height: 1.6;
}

.request-address-selected__jibun span {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff;
  color: #687284;
  font-size: 12px;
}

.request-address-selected__jibun em {
  font-style: normal;
}

/* ==============================================
   동·호수 선택 입력
============================================== */

.request-address-detail {
  margin-top: 30px;
}

.request-address-detail__label {
  margin-bottom: 6px;
}

.request-address-detail__label span {
  font-weight: 400;
}

.request-address-detail > p {
  margin: 7px 0 0;
  color: #9299a5;
  font-size: 0.9rem;
}

.request-address-detail__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.request-address-detail__input {
  position: relative;
}

.request-address-detail__input input {
  display: block;
  width: 100%;
  height: 62px;
  padding: 0 50px 0 16px;
  border: 1px solid #d8dce2;
  border-radius: 14px;
  background: #fff;
  color: #17191c;
  font-family: inherit;
  font-size: 17px;
  outline: none;
}

.request-address-detail__input input:focus {
  border-color: #252c35;
  box-shadow: 0 0 0 2px rgba(37, 44, 53, 0.1);
}

.request-address-detail__input span {
  position: absolute;
  top: 50%;
  right: 18px;
  color: #858d99;
  font-size: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}

@media (max-width: 480px) {
  .request-address-search__input input {
    height: 62px;
    font-size: 16px;
  }

  .request-address-result {
    padding: 16px;
  }

  .request-address-detail__fields {
    gap: 10px;
  }
}

/* ==============================================
   개인 의뢰 사진 등록
============================================== */

.request-photo-section {
  margin-top: 36px;
}

.request-photo-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.request-photo-section__head strong {
  color: #17191c;
  font-size: 19px;
  font-weight: 700;
}

.request-photo-section__head strong span {
  color: #858d99;
  font-weight: 500;
}

.request-photo-section__head em {
  color: #687284;
  font-size: 14px;
  font-style: normal;
}

.request-photo-section__description {
  margin: 8px 0 0;
  color: #9299a5;
  font-size: 14px;
}

#requestPhotos {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.request-photo-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 72px;
  margin-top: 22px;
  padding: 18px 24px;
  border-radius: 14px;
  background: #f3f4f5;
  color: #17191c;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.request-photo-upload:hover {
  background: #e9ebed;
}

.request-photo-upload span {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.request-photo-upload.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.request-photo-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.request-photo-preview:empty {
  display: none;
}

.request-photo-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #eef0f2;
}

.request-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-photo-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.request-photo-representative {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(37, 44, 53, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.request-photo-help {
  margin: 12px 0 0;
  color: #9299a5;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .request-photo-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .request-photo-upload {
    min-height: 66px;
    font-size: 16px;
  }
}

.request-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.request-phone-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #252c35;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.request-phone-row button:hover {
  background: #111827;
}

.request-phone-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#boxTel.readonly .my-write-input,
#boxTelok.readonly .my-write-input {
  background: #f5f6f7;
  color: #687284;
}

@media (max-width: 480px) {
  .request-phone-row {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .request-phone-row button {
    padding: 0 10px;
    font-size: 13px;
  }
}

.listing-photo-section + .listing-photo-section {
  margin-top: 50px;
}

/* ==============================================
   기업 매물 상세내용
============================================== */

.listing-content-field {
  margin-top: 34px;
}

.listing-content-field .my-write-label {
  margin-bottom: 14px;
}

.listing-content-field .my-write-textarea {
  min-height: 300px;
}

@media (max-width: 480px) {
  .listing-content-field {
    margin-top: 28px;
  }

  .listing-content-field .my-write-label {
    margin-bottom: 12px;
  }

  .listing-content-field .my-write-textarea {
    min-height: 260px;
  }
}

/* ==============================================
   기업 매물 건축정보
============================================== */

.listing-building-fields {
  margin-top: 34px;
}

.listing-building-fields > .my-write-field,
.listing-building-fields > .my-write-field-row {
  margin-top: 28px;
}

.listing-building-fields > .my-write-field:first-child {
  margin-top: 0;
}

.listing-building-fields .my-write-label {
  margin-bottom: 12px;
}

.listing-building-fields .my-write-field-row {
  gap: 12px;
}

.listing-building-fields .my-write-field-row > .my-write-field {
  min-width: 0;
  margin-top: 0;
}

/* 준공인가일 날짜 입력 */
.my-write-date-input {
  position: relative;
  width: 100%;
  height: 58px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8dce2;
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
}

.my-write-date-input:focus-within {
  border-color: #252c35;
  box-shadow: 0 0 0 2px rgba(37, 44, 53, 0.1);
}

.my-write-date-input #listingCompletionDate {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  margin: 0;
  padding: 0 16px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  line-height: normal;
}

.my-write-date-input #listingCompletionDate:focus {
  border: 0;
  box-shadow: none;
}

#listingCompletionDate::-webkit-date-and-time-value {
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

#listingCompletionDate::-webkit-datetime-edit {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
}

/* PC에서는 브라우저 기본 달력 아이콘 사용 */
.my-write-date-input > .material-symbols-outlined {
  display: none;
}

/* 건축정보 모바일 배치 */
@media (max-width: 480px) {
  .listing-building-fields {
    margin-top: 28px;
  }

  .listing-building-fields > .my-write-field,
  .listing-building-fields > .my-write-field-row {
    margin-top: 24px;
  }

  .listing-building-fields .my-write-field-row.keep-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .my-write-date-input #listingCompletionDate {
    padding: 14px 52px 14px 16px;
    line-height: 28px;
  }

  .my-write-date-input #listingCompletionDate::-webkit-date-and-time-value {
    height: 28px;
    line-height: 28px;
  }

  .my-write-date-input #listingCompletionDate::-webkit-datetime-edit {
    display: block;
    height: 28px;
    line-height: 28px;
  }

  .my-write-date-input > .material-symbols-outlined {
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 2;
    display: block;
    color: #697386;
    font-size: 22px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
  }
}

/* ==============================================
   기업 매물 방향 선택
============================================== */

.listing-direction-field {
  margin-top: 34px;
}

.listing-direction-field > .my-write-label {
  margin-bottom: 14px;
}

.listing-direction-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.listing-direction-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.listing-direction-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.listing-direction-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 10px 8px;
  border: 1px solid #d8dce2;
  border-radius: 13px;
  background: #fff;
  color: #30343a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.listing-direction-option:hover span {
  border-color: #9da5b0;
}

.listing-direction-option input:checked + span {
  border-color: #252c35;
  background: #252c35;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 44, 53, 0.14);
}

.listing-direction-option input:focus-visible + span {
  outline: 2px solid #252c35;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .listing-direction-field {
    margin-top: 28px;
  }

  .listing-direction-options {
    gap: .5rem;
  }

  .listing-direction-option span {
    min-height: 46px;
    font-size: .9rem;
  }
}

/* ==============================================
   기업 매물 권리금 · 구조정보
   개인 의뢰의 매물 조건과 같은 간격 체계 사용
============================================== */

.listing-premium-description {
  margin-top: 30px;
}

.listing-premium-description .my-write-label {
  margin-bottom: 12px;
}

.listing-structure-fields {
  margin-top: 34px;
}

.listing-structure-fields > .my-write-field {
  margin-top: 28px;
}

.listing-structure-fields > .my-write-group {
  margin-top: 18px;
}

.listing-structure-fields > :first-child {
  margin-top: 0;
}

.listing-structure-fields .my-write-field-row {
  gap: 12px;
}

.listing-structure-fields .my-write-field-row > .my-write-field {
  margin-top: 0;
}

.listing-structure-checks {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .listing-premium-description {
    margin-top: 24px;
  }

  .listing-structure-fields {
    margin-top: 28px;
  }

  .listing-structure-fields > .my-write-field {
    margin-top: 24px;
  }

  .listing-structure-fields > .my-write-group {
    margin-top: 14px;
  }

  .listing-structure-fields .my-write-field-row.keep-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .listing-structure-checks {
    margin-top: 16px;
  }
}

/* 기업 매물 사진 실제 파일 입력 숨김 */
#listingPhotos,
#floorplanPhotos {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==============================================
   비회원 등록 진입 화면
============================================== */

.write-entry--guest .write-entry__description {
  margin: 14px 0 32px;
  font-size: 17px;
  line-height: 1.6;
  color: #707b8d;
}

.write-entry-guest-card {
  padding: 28px;
  border: 2px solid #252d38;
  border-radius: 24px;
  background: #fff;
}

.write-entry-guest-card__head strong,
.write-entry-guest-card__head span {
  display: block;
}

.write-entry-guest-card__head strong {
  font-size: 24px;
  font-weight: 600;
  color: #171b21;
}

.write-entry-guest-card__head span {
  margin-top: 9px;
  font-size: 1rem;
  color: #707b8d;
}

.write-entry-guest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.write-entry-login-button,
.write-entry-guest-actions .write-entry-request {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid #dce1e8;
  border-radius: 16px;
  background: #f7f8fa;
  text-align: left;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  color: #17191c;
}

.write-entry-login-button {
  background: #252d38;
  border-color: #252d38;
}

.write-entry-login-button strong {
  color: #fff;
}

.write-entry-login-button span {
  color: #cbd1da;
}

.write-entry-guest-actions strong {
  font-size: 1.15rem;
  font-weight: 500;
}

.write-entry-guest-actions span {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.write-entry-business.is-disabled {
  margin-top: 16px;
  border-color: #e5e8ed;
  background: #f5f6f8;
  cursor: not-allowed;
  opacity: 0.58;
}

.write-entry-business.is-disabled strong em {
  display: inline-block;
  margin-left: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #e4e7eb;
  font-size: 12px;
  font-style: normal;
  color: #7f8792;
}

.write-entry-login-guide {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #8b94a2;
}

@media (max-width: 640px) {
  .write-entry-guest-actions {
    grid-template-columns: 1fr;
  }

  .write-entry-guest-actions strong {
    font-size: 1.15rem;
    font-weight: 600;
  }

  .write-entry-guest-card {
    padding: 22px;
  }
}

/* ==============================================
   기업회원 신청 및 상태 화면
============================================== */

.company-apply-intro {
  display: none;
  min-height: 100%;
  padding: 74px 38px 52px;
  text-align: center;
}

.company-apply-intro.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-apply-intro__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 30px;
  border-radius: 50%;
  background: #f1f3f5;
  color: #252c35;
}

.company-apply-intro__icon svg {
  width: 42px;
  height: 42px;
}

.company-apply-intro h2 {
  margin: 0;
  color: #17191c;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
}

.company-apply-intro p {
  margin: 18px 0 0;
  color: #687284;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.company-apply-start {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  margin-top: 42px;
  border: 0;
  border-radius: 14px;
  background: #252c35;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 480px) {
  .company-apply-intro {
    padding: 56px 20px 40px;
  }

  .company-apply-intro__icon {
    width: 78px;
    height: 78px;
    margin-bottom: 26px;
  }

  .company-apply-intro h2 {
    font-size: 25px;
  }

  .company-apply-intro p {
    font-size: 15px;
  }
}

.company-apply-state {
  padding: 70px 38px;
  text-align: center;
}

.company-apply-state__badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef1f5;
  color: #596273;
  font-size: 13px;
  font-weight: 700;
}

.company-apply-state--pending .company-apply-state__badge {
  background: #fff4d8;
  color: #9a6700;
}

.company-apply-state--approved .company-apply-state__badge {
  background: #e8f7ee;
  color: #18723b;
}

.company-apply-state h2 {
  margin: 22px 0 0;
  font-size: 28px;
  line-height: 1.4;
}

.company-apply-state > p {
  margin: 12px 0 0;
  color: #707b8d;
  line-height: 1.65;
}

.company-apply-state dl {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
  font-size: 14px;
}

.company-apply-state dl dt {
  color: #8b94a2;
}
.company-apply-state dl dd {
  margin: 0;
  font-weight: 700;
}

.company-apply-state button,
.company-apply-state a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  margin-top: 30px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: #252d38;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.company-reject-box {
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid #f1c7c7;
  border-radius: 14px;
  background: #fff5f5;
  color: #a13030;
}

.company-reject-box strong {
  display: block;
}
.company-reject-box p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.company-apply-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 24px;
  border: 2px dashed #d8dde5;
  border-radius: 16px;
  background: #fafbfc;
  cursor: pointer;
}

.company-apply-file strong {
  font-size: 17px;
}
.company-apply-file span {
  margin-top: 9px;
  color: #7d8796;
  font-size: 14px;
  word-break: break-all;
}

#mb_business_file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .company-apply-state {
    padding: 54px 24px;
  }
  .company-apply-state h2 {
    font-size: 24px;
  }
}

/* ==============================================
   기업회원 사업자등록증
============================================== */

.company-file-section {
  margin-top: 34px;
}

.company-file-status {
  font-weight: 700;
  color: #687284;
}

.company-file-preview {
  grid-template-columns: minmax(0, 180px);
}

.company-file-image {
  width: 180px;
  max-width: 100%;
}

.company-file-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.company-file-pdf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  padding: 24px 16px;
  overflow: hidden;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  background: #f5f6f8;
  text-align: center;
}

.company-file-pdf__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 66px;
  border-radius: 8px;
  background: #e54848;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.company-file-pdf strong {
  display: block;
  width: 100%;
  margin-top: 13px;
  overflow: hidden;
  color: #252b33;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-file-pdf > span {
  margin-top: 5px;
  color: #9299a5;
  font-size: 12px;
}

@media (max-width: 480px) {
  .company-file-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-file-image,
  .company-file-pdf {
    width: 100%;
  }
}

/* 모바일 등록폼 이전·다음 버튼 하단 고정 */
@media (max-width: 768px) {
  .write-form-layer .my-write-actions {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e8eaed;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .write-form-layer .my-write-step {
    padding-bottom: 110px;
  }
}

/* ==============================================
   배너광고 상품 선택 및 소재 등록
============================================== */

/* 공통 박스 크기 계산 */
.my-ad-service,
.my-ad-service *,
.my-ad-order-summary,
.my-ad-order-summary * {
  box-sizing: border-box;
}

/* 광고상품 선택 화면 전체 */
.my-ad-service {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  background: #fff;
}

/* 광고상품 선택 화면 제목 */
.my-ad-service > .my-write-step-head {
  padding: 52px 38px 0;
}

/* 광고상품 선택 폼 */
#myAdServiceForm {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

/* 광고 소재 등록 화면 본문 */
.my-ad-write-content {
  flex: 1 1 auto;
  width: 100%;
  padding: 52px 38px 38px;
}

/* ==============================================
   광고상품 목록
============================================== */

.my-ad-service__list {
  display: grid;
  gap: 14px;
  margin: 32px 38px 0;
}

/* 기본 라디오 버튼 숨김 */
.my-ad-service__item > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 광고상품 카드 */
.my-ad-service__item > label {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 2px solid #e1e5eb;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
}

/* 선택된 광고상품 */
.my-ad-service__item > input:checked + label {
  border-color: #252c35;
  box-shadow: 0 0 0 1px #252c35;
}

/* 키보드 접근성 */
.my-ad-service__item > input:focus-visible + label {
  outline: 3px solid rgba(37, 44, 53, 0.2);
  outline-offset: 3px;
}

/* ==============================================
   광고상품 썸네일
============================================== */

.my-ad-service__thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 110px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f5f7;
  color: #8a94a3;
}

/* 썸네일 이미지 */
.my-ad-service__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================================
   광고상품 정보
============================================== */

.my-ad-service__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* 상품명 */
.my-ad-service__content > strong {
  font-size: 19px;
  line-height: 1.4;
  word-break: keep-all;
}

/* 상품 설명 */
.my-ad-service__content > em {
  margin-top: 6px;
  color: #687386;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  word-break: keep-all;
}

/* 기간·가격·노출방식 */
.my-ad-service__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

/* 정보 배지 */
.my-ad-service__meta b {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f1f3f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

/* 광고 크기 및 노출위치 */
.my-ad-service__size {
  margin-top: 10px;
  color: #687386;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}

/* 제작의뢰 안내 */
.my-ad-service__production {
  align-self: flex-start;
  margin-top: 9px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eaf8f4;
  color: #16826a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

/* ==============================================
   희망 노출 시작일
============================================== */

.my-ad-service__schedule {
  margin: 30px 38px 0;
}

/* ==============================================
   광고상품 선택 하단 버튼
============================================== */

/* PC: 상품 목록 아래에 일반 배치 */
.my-ad-service .my-write-actions {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  margin-top: 30px;
}

/* ==============================================
   결제 예정 정보
============================================== */

.my-ad-order-summary {
  display: grid;
  gap: 0;
  margin: 26px 0 34px;
  padding: 8px 20px;
  border-radius: 15px;
  background: #f6f7f9;
}

.my-ad-order-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e7eb;
}

.my-ad-order-summary > div:last-child {
  border-bottom: 0;
}

.my-ad-order-summary span {
  color: #778193;
}

.my-ad-order-summary strong {
  text-align: right;
}

/* ==============================================
   직접등록·제작의뢰 입력 영역
============================================== */

.my-ad-production-fields[hidden],
.my-ad-direct-fields[hidden] {
  display: none !important;
}

/* 파일 권장사항 안내 */
.my-write-help {
  margin: 6px 0 10px;
  color: #7b8492;
  font-size: 13px;
  line-height: 1.5;
}

/* 관리자 재승인 안내 */
.my-write-notice {
  margin: 26px 0 0;
  padding: 15px 17px;
  border-radius: 13px;
  background: #f6f7f9;
  color: #687386;
  font-size: 13px;
  line-height: 1.65;
}

/* ==============================================
   태블릿·모바일 하단 버튼 고정
============================================== */

@media (max-width: 768px) {
  .write-form-layer .my-ad-service .my-write-actions {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    margin-top: 30px;
    border-top: 1px solid #e8eaed;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ==============================================
   모바일 화면
============================================== */

@media (max-width: 600px) {
  .my-ad-service > .my-write-step-head {
    padding: 42px 20px 0;
  }

  .my-ad-write-content {
    padding: 42px 20px 28px;
  }

  .my-ad-service__list {
    margin: 28px 20px 0;
  }

  .my-ad-service__schedule {
    margin: 26px 20px 0;
  }

  .my-ad-service__item > label {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .my-ad-service__thumbnail {
    min-height: 92px;
  }

  .my-ad-service__content > strong {
    font-size: 16px;
  }

  .my-ad-service__content > em {
    font-size: 13px;
  }

  .my-ad-order-summary > div {
    font-size: 13px;
  }
}

/* ==============================================
   작은 모바일 화면
============================================== */

@media (max-width: 480px) {
  .my-ad-service > .my-write-step-head,
  .my-ad-write-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .my-ad-service__list {
    margin-right: 16px;
    margin-left: 16px;
  }

  .my-ad-service__schedule {
    margin-right: 16px;
    margin-left: 16px;
  }

  .my-ad-service__item > label {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .my-ad-service__thumbnail {
    min-height: 84px;
  }
}

/* 모바일: 이전·다음 버튼 하단 고정 */
@media (max-width: 768px) {
  .write-form-layer .my-ad-service .my-write-actions {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e8eaed;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ==============================================
   광고 등록폼 간격 및 파일 첨부 정렬
============================================== */

/* 파일 첨부 내용을 세로 가운데 정렬 */
.my-ad-write-content input[type="file"].my-write-input {
  height: 58px;
  padding: 0 16px;
  line-height: 56px;
}

.my-ad-write-content input[type="file"].my-write-input::file-selector-button {
  height: 36px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  cursor: pointer;
}

/* 배너 제작방식 상하 여백 */
.my-ad-write-content > .my-write-group {
  margin-top: 32px;
  margin-bottom: 32px;
}

/* 희망 노출일 제목·설명과 날짜 입력칸 사이 여백 */
.my-ad-service__schedule .my-write-input {
  margin-top: 16px;
}

/* ==============================================
   매물 광고 관리 목록
============================================== */
.my-service-manage {
  padding: 34px 38px;
}
.my-service-manage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.my-service-manage__head h2 {
  margin: 0;
  font-size: 26px;
}
.my-service-manage__head p {
  margin: 7px 0 0;
  color: #7b8492;
  font-size: 14px;
}
.my-service-manage__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 42px;
  padding: 0 15px;
  border-radius: 9px;
  background: #252c35;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.my-service-manage__add .material-symbols-outlined {
  font-size: 19px;
}
.my-service-manage__listing {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
  padding: 15px 17px;
  border: 1px solid #e7e9ed;
  border-radius: 12px;
  background: #f7f8fa;
}
.my-service-manage__listing span {
  color: #7b8492;
  font-size: 12px;
}
.my-service-manage__listing strong {
  font-size: 15px;
}
.my-service-manage__list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.my-service-manage__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e3e6ea;
  border-radius: 13px;
  background: #fff;
}
.my-service-manage__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f3f5f8;
  color: #64748b;
}
.my-service-manage__icon .material-symbols-outlined {
  font-size: 21px;
}
.my-service-manage__name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.my-service-manage__name strong {
  font-size: 15px;
}
.my-service-manage__name span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #687386;
  font-size: 11px;
}
.my-service-manage__date {
  margin-top: 5px;
  color: #7b8492;
  font-size: 13px;
}
.my-service-manage__item.is-running .my-service-manage__name span {
  background: #eaf9ef;
  color: #22a447;
}
.my-service-manage__item.is-reserved .my-service-manage__name span {
  background: #fff4e5;
  color: #e98b00;
}
.my-service-manage__item.is-pending .my-service-manage__name span {
  background: #fff4e5;
  color: #e98b00;
}
.my-service-manage__button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #252c35;
  border-radius: 8px;
  color: #252c35;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.my-service-manage__empty {
  margin-top: 20px;
  padding: 40px 20px;
  border: 1px dashed #d7dce2;
  border-radius: 13px;
  color: #7b8492;
  text-align: center;
}

@media (max-width: 560px) {
  .my-service-manage {
    padding: 28px 24px;
  }
  .my-service-manage__head {
    align-items: flex-start;
  }
  .my-service-manage__head h2 {
    font-size: 23px;
  }
  .my-service-manage__add {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .my-service-manage__item {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .my-service-manage__icon {
    width: 38px;
    height: 38px;
  }
  .my-service-manage__button {
    grid-column: 1 / 3;
    width: 100%;
  }
}

/* ==============================================
   제휴문의 등록폼
============================================== */

.my-partner-write-form .partner-phone-send {
  display: flex;
  gap: 10px;
}

.my-partner-write-form .partner-phone-send .my-write-input {
  flex: 1 1 auto;
  min-width: 0;
}

.my-partner-write-form #btnNumberSend,
.my-partner-write-form #btnNumberOk {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #252c35;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.my-partner-write-form #btnNumberSend:disabled,
.my-partner-write-form #btnNumberOk:disabled {
  cursor: default;
  opacity: 0.55;
}

.my-partner-write-form .partner-content {
  width: 100%;
  min-height: 220px;
  padding: 16px;
  resize: vertical;
}

@media (max-width: 480px) {
  .my-partner-write-form .partner-phone-send {
    align-items: stretch;
  }

  .my-partner-write-form #btnNumberSend,
  .my-partner-write-form #btnNumberOk {
    min-width: 104px;
    padding: 0 12px;
  }
}
