/* =========================
   FP Maker Pre-Reserve Page
   ========================= */

.reserve-page {
  background: #f7f8fb;
  color: #111827;
}

/* ---- Hero ---- */
.reserve-hero {
  padding: 96px 0 36px;
  background: radial-gradient(
      1000px 500px at 20% 10%,
      rgba(236, 72, 153, 0.12),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at 80% 20%,
      rgba(59, 130, 246, 0.12),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border-bottom: 1px solid #e5e7eb;
}

.reserve-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.reserve-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.2);
  color: #db2777;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.reserve-title {
  margin: 14px 0 10px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.reserve-title__top,
.reserve-title__bottom {
  display: block;
  font-size: 44px;
  font-weight: 900;
  color: #111827;
}

.reserve-subtitle {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Instagram guide carousel ---- */
.reserve-guide {
  padding: 32px 0 8px;
}

.reserve-guide__head {
  text-align: center;
  margin-bottom: 18px;
}

.reserve-guide__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
  color: #111827;
}

.reserve-guide__sub {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.reserve-guide__viewport {
  max-width: 500px;
  margin: 0 auto;
}

.reserve-guide__frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.reserve-guide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reserve-guide__frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.reserve-guide__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(
    45deg,
    #fdf2f8,
    #fdf2f8 12px,
    #fce7f3 12px,
    #fce7f3 24px
  );
  border: 2px dashed #f9a8d4;
  color: #be185d;
  text-align: center;
}

.reserve-guide__ph-index {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}

.reserve-guide__ph-text {
  font-size: 16px;
  font-weight: 900;
}

.reserve-guide__ph-spec {
  font-size: 12px;
  color: #9d174d;
  opacity: 0.7;
}

/* Swiper controls within guide */
.reserve-guide__swiper {
  padding-bottom: 36px;
}

.reserve-guide__swiper .swiper-pagination-bullet-active {
  background: #ec4899;
}

.reserve-guide__swiper .swiper-button-next,
.reserve-guide__swiper .swiper-button-prev {
  color: #ec4899;
}

.reserve-guide__swiper .swiper-button-next::after,
.reserve-guide__swiper .swiper-button-prev::after {
  font-size: 24px;
  font-weight: 900;
}

/* ---- Content layout ---- */
.reserve-content {
  padding: 30px 0 80px;
}

.reserve-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Cards ---- */
.reserve-card {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.reserve-card + .reserve-card {
  margin-top: 16px;
}

.reserve-card__title {
  font-weight: 900;
  color: #111827;
  font-size: 17px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* ---- Benefits / Features ---- */
.reserve-benefits,
.reserve-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reserve-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.reserve-benefit__icon {
  flex: 0 0 auto;
}

.reserve-feature {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.reserve-feature:last-child {
  border-bottom: 0;
}

.reserve-feature__title {
  color: #111827;
  font-weight: 800;
  font-size: 14px;
}

.reserve-feature__desc {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

/* ---- Form ---- */
.reserve-form-card__hint {
  margin: -6px 0 16px;
  color: #db2777;
  font-size: 12px;
}

.reserve-form__row {
  margin-bottom: 18px;
}

.reserve-form__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .reserve-form__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.reserve-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.reserve-req {
  color: #ef4444;
}

.reserve-optional {
  color: #9ca3af;
  font-weight: 500;
  font-size: 12px;
}

.reserve-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.reserve-input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.reserve-input:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.reserve-input--mt {
  margin-top: 8px;
}

.reserve-hint-text {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

/* 아이디 중복확인 / 주소 검색 행 */
.reserve-id-row {
  display: flex;
  gap: 8px;
}

.reserve-id-row .reserve-input {
  flex: 1 1 auto;
  min-width: 0;
}

.reserve-subbtn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #ec4899;
  border-radius: 12px;
  background: #fff;
  color: #db2777;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.reserve-subbtn:hover:not(:disabled) {
  background: #fdf2f8;
}

.reserve-subbtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reserve-helper {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.reserve-helper--ok {
  color: #059669;
}

.reserve-helper--error {
  color: #ef4444;
}

/* 주소 검색 모달 */
.reserve-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
}

.reserve-modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.reserve-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 800;
  color: #111827;
}

.reserve-modal__close {
  border: none;
  background: none;
  font-size: 16px;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
}

.reserve-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

.reserve-inline-check input {
  width: 16px;
  height: 16px;
  accent-color: #ec4899;
}

.reserve-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ---- Interest chips ---- */
.reserve-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reserve-chip {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #fbcfe8;
  background: #fdf2f8;
  color: #be185d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reserve-chip.is-active {
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 0.95),
    rgba(59, 130, 246, 0.92)
  );
  border-color: transparent;
  color: #ffffff;
}

/* ---- Honeypot (hidden) ---- */
.reserve-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Agreement ---- */
.reserve-agree {
  padding: 14px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.reserve-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.reserve-check-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.reserve-check-row .reserve-check {
  min-width: 0;
  margin-bottom: 0;
}

.reserve-check-row--stacked {
  display: block;
  margin-bottom: 0;
}

.reserve-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: #ec4899;
}

.reserve-check--all {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 800;
}

.reserve-policy-link {
  flex: 0 0 auto;
  color: #db2777;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reserve-policy-link:hover {
  color: #be185d;
}

.reserve-marketing-policy {
  margin: 8px 0 0 26px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.reserve-marketing-policy summary {
  display: inline-flex;
  color: #db2777;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reserve-marketing-policy p {
  margin: 6px 0 0;
}

.reserve-agree__desc {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

/* ---- Error ---- */
.reserve-error {
  margin: 6px 0 0;
  color: #ef4444;
  font-size: 12px;
  line-height: 1.4;
}

/* ---- Submit ---- */
.reserve-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 0.95),
    rgba(59, 130, 246, 0.92)
  );
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.reserve-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.reserve-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---- Done ---- */
.reserve-done {
  max-width: 560px;
  margin: 20px auto;
  padding: 48px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.reserve-done__emoji {
  font-size: 56px;
  line-height: 1;
}

.reserve-done__title {
  margin: 18px 0 12px;
  font-size: 26px;
  font-weight: 900;
  color: #111827;
}

.reserve-done__desc {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

.reserve-done__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.reserve-done__home {
  width: 100%;
}

.reserve-done__insta {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.reserve-done__insta:hover {
  text-decoration: underline;
}

/* =========================
   Mobile ( <= 991px )
   ========================= */
@media (max-width: 991px) {
  .reserve-hero {
    padding: 76px 0 26px;
  }

  .reserve-title__top,
  .reserve-title__bottom {
    font-size: 30px;
  }

  .reserve-subtitle {
    font-size: 15px;
  }

  .reserve-card {
    padding: 18px;
  }

  .reserve-done {
    padding: 36px 18px;
  }

  .reserve-done__title {
    font-size: 22px;
  }

  .reserve-guide__title {
    font-size: 20px;
  }

  /* 모바일은 스와이프로만 (인스타와 동일) */
  .reserve-guide__swiper .swiper-button-next,
  .reserve-guide__swiper .swiper-button-prev {
    display: none;
  }
}

/* 작은 휴대폰: 입력 폰트 16px 유지(iOS 자동 줌 방지) */
@media (max-width: 480px) {
  .reserve-input {
    font-size: 16px;
  }
}
