/* 대전 하늘채 루시에르 관심고객 등록 Sub Page 전용 스타일시트 ('관심고객 등록.png' 기준 + 모바일 완벽 최적화) */
@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --primary-navy: #0d0251;
  --primary-navy-hover: #16086e;
  --form-border: #e0e0e0;
  --form-focus: #0d0251;
  --text-main: #111111;
  --text-sub: #666666;
  --text-light: #888888;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body.register-page {
  background-color: #f0f2f5;
  background-image: url('/image/form_bg.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 폼 페이지 메인 영역 */
.register-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 50px;
}

/* 중앙 폼 카드 (관심고객 등록.png 디자인 완벽 구현) */
.register-card {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  padding: 45px 44px 40px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* 상단 마감임박 이벤트 배너 */
.register-banner-wrap {
  text-align: center;
  margin-bottom: 34px;
}

.register-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0 auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 폼 그룹 공통 */
.reg-form-group {
  margin-bottom: 26px;
  position: relative;
}

.reg-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 5px;
  letter-spacing: -0.3px;
}

.reg-label .required-star {
  color: #e53e3e;
  font-weight: 700;
  margin-left: 2px;
}

.reg-desc {
  font-size: 13px;
  color: #777777;
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

/* 밑줄형 인풋 필드 */
.reg-input-underline {
  width: 100%;
  height: 44px;
  border: none;
  border-bottom: 1px solid #d5d5d5;
  background-color: transparent;
  font-size: 16px; /* iOS 자동 줌인 방지 기준 */
  color: #111111;
  font-family: inherit;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: 0;
  box-sizing: border-box;
}

.reg-input-underline:focus {
  border-bottom: 2px solid var(--primary-navy);
}

.reg-input-underline::placeholder {
  color: #aaaaaa;
  font-size: 15px;
}

/* 날짜/시간 선택 필드 */
.date-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.date-input-wrapper input {
  padding-right: 36px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.date-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
  pointer-events: none;
  font-size: 18px;
}

/* 개인정보 수집 및 이용 동의 영역 */
.privacy-group {
  margin-top: 30px;
  margin-bottom: 28px;
}

.privacy-notice-text {
  font-size: 13px;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 10px;
  word-break: keep-all;
}

.privacy-box {
  width: 100%;
  height: 105px;
  background-color: #fafafa;
  border: 1px solid #e2e2e2;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #555555;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
  white-space: pre-line;
  font-family: inherit;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.privacy-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #222222;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.privacy-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-navy);
  cursor: pointer;
  flex-shrink: 0;
}

/* 관심고객 등록 푸시버튼 */
.btn-submit-reg {
  width: 100%;
  height: 52px;
  background-color: var(--primary-navy);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.3px;
  box-shadow: 0 4px 14px rgba(13, 2, 81, 0.25);
  margin-top: 10px;
}

.btn-submit-reg:hover, .btn-submit-reg:active {
  background-color: var(--primary-navy-hover);
  box-shadow: 0 6px 18px rgba(13, 2, 81, 0.35);
  transform: translateY(-1px);
}

.btn-submit-reg:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 로딩 스피너 */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 성공/안내 팝업 모달 */
.success-modal-card {
  text-align: center;
  padding: 35px 25px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.success-desc {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
  word-break: keep-all;
}

.btn-modal-confirm {
  padding: 12px 30px;
  background: var(--primary-navy);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
}

/* ==========================================================================
   모바일 전용 화면 최적화 (스마트폰 크기 적용)
========================================================================== */
@media (max-width: 768px) {
  .site-header {
    height: 58px;
  }
  .site-header .header-container {
    padding: 0 12px;
  }
  .site-header .header-brand .header-logo {
    height: 30px;
    max-width: 200px;
    object-fit: contain;
  }
  .header-actions .btn-admin span {
    display: none;
  }
  .header-actions .btn-admin {
    padding: 6px 10px;
  }
  .btn-register-top {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .register-main {
    padding: 75px 12px calc(40px + var(--safe-bottom));
  }

  .register-card {
    padding: 28px 18px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .register-banner-wrap {
    margin-bottom: 24px;
  }

  .reg-form-group {
    margin-bottom: 22px;
  }

  .reg-label {
    font-size: 15px;
  }

  .reg-input-underline {
    font-size: 16px;
    height: 42px;
  }

  .privacy-group {
    margin-top: 24px;
    margin-bottom: 22px;
  }

  .privacy-notice-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .privacy-box {
    height: 90px;
    font-size: 12px;
    padding: 10px;
  }

  .privacy-checkbox-label {
    font-size: 13.5px;
  }

  .btn-submit-reg {
    height: 50px;
    font-size: 16.5px;
  }
}

@media (max-width: 480px) {
  .register-main {
    padding: 68px 10px calc(30px + var(--safe-bottom));
  }

  .register-card {
    padding: 24px 14px 22px;
  }

  .reg-desc {
    font-size: 12px;
  }
}
