/* ===============================
   Sell Request Page (srp-*)
   =============================== */

/* 레이아웃 */
.srp { max-width: 860px; margin: 0 auto; padding: 0; }
.srp__title { margin: 0 0 16px; font-size: 26px; font-weight: 800; }

/* 알림 */
.srp__alert { border: 1px solid var(--line, #e5e7eb); padding: 12px; border-radius: 10px; margin-bottom: 16px; }
.srp__alert--success { background: #e8f9e8; color: #256d25; border-color: #bfe8bf; }
.srp__alert--error   { background: #fde8e8; color: #8b1a1a; border-color: #f5bcbc; }

/* 폼 */
.srp__form { display: block; }
.srp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.srp__row { display: flex; flex-direction: column; gap: 6px; }
.srp__row--full { grid-column: 1 / -1; }

/* 라벨 */
.srp__label { font-weight: 700; color: #374151; }

/* 인풋/셀렉트/텍스트에어리어 */
.srp__control { 
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.srp__control:focus {
  border-color: #9bb3e6;
  box-shadow: 0 0 0 3px rgba(155, 179, 230, .2);
}

/* 파일 업로드 */
.srp__file {
  border: 1px dashed #c7cdd8;
  background: #fafbff;
  padding: 14px;
  border-radius: 10px;
}
.srp__hint { color: #6b7280; font-size: 12px; }

/* 액션 버튼 영역 */
.srp__actions { margin-top: 18px; display: flex; gap: 10px; }
.srp__btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.srp__btn--primary { background: #111; color: #fff; border: 0; }
.srp__btn--ghost   { border: 1px solid #e5e7eb; background: #fff; color: #111; }

/* 반응형 */
@media (max-width: 760px) {
  .srp__grid { grid-template-columns: 1fr; }
}

/* RTL 대응 */
[dir="rtl"] .srp { direction: rtl; }
/* ===== 이미지 미리보기 ===== */
.srp-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.srp-thumb {
  position: relative;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
  cursor: grab;
}
.srp-thumb:active { cursor: grabbing; }

.srp-thumb__img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.srp-thumb__bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 6px;
  background: rgba(0,0,0,0.45);
}

.srp-btn {
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.srp-btn--del { background: #ffeded; color: #b00020; }

.srp-thumb[aria-grabbed="true"] {
  outline: 2px dashed #4b8df8;
  outline-offset: 2px;
}

.srp-previews .srp-thumb.drop-target {
  box-shadow: 0 0 0 2px #4b8df8 inset;
}
/* /assets/css/Request_sell.css 맨 아래에 추가 */
.srp__control,
.srp__row { 
  scroll-margin-top: 90px;          /* 헤더 높이에 맞춰 조정 */
  scroll-margin-block-start: 90px;  /* 일부 브라우저 호환 */
}
/* 해당 행에 required 컨트롤이 있으면 라벨 끝에 빨간 별표 표시 */
.srp__row:has(.srp__control:is(input, select, textarea)[required]) .srp__label::after {
  content: "*";
  color: #e11d48;      /* 빨강(rose-600 정도) */
  font-weight: 700;
  margin-left: 4px;
}
/* 썸네일 컨테이너가 상대배치여야 라벨을 고정할 수 있어요 */
.srp-thumb { position: relative; }

/* 용량 라벨: 좌상단, 작은 글씨, 반투명 배경 */
.srp-thumb__meta{
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.2;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 4px;
  pointer-events: none; /* 버튼 클릭에 방해되지 않도록 */
}
.srp__counter { margin-left:8px; font-size:12px; color:#64748b; } /* slate-500 */
/* =============================
   BUY REQUEST – TOP HERO BANNER
============================== */
.srp{margin-top:30px;}
.brp__hero {
    width: 100%;
    height: 300px;
    background: url('/assets/img/sell_main.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    border-radius: 0;
}

.brp__hero-inner {
    max-width: 900px;
    width: 100%;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.brp__hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
}

.brp__hero-desc {
    font-size: 17px;
    font-weight: 300;
    margin: 0;
}

/* ===== 모바일 최적화 ===== */
@media (max-width: 768px) {
    .brp__hero {
        width: 100vw;
        margin-left: calc(-1 * (100vw - 100%)/2); /* 중앙 정렬 보정 */
        margin-right: calc(-1 * (100vw - 100%)/2);
        height: 120px;
        padding: 10px 15px;
    }

    .brp__hero-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .brp__hero-desc {
        font-size: 11px;
    }
}
.main.is-sub{
	padding-top:0 !important;
	padding-bottom:50px !important;
}