@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --font-family: 'Pretendard';
  --vh: 100%;
  --width-base: 480px;

  --main-color: #ff2e8b;
  --black-color: #000;
  --white-color: #fff;
  --text-primary: #444;
  --text-secondary: #666;
  --text-tertiary: #888;
  --border-color: #dbdbdb;
  --bg-light: #f7f7f7;
  --bg-lighter: #fafafa;
  --bg-border: #eee;
  --shadow-sm: 0 2px 8px rgba(255, 46, 139, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --spacing-xs: 5px;
  --spacing-sm: 8px;
  --spacing-md: 10px;
  --spacing-lg: 12px;
  --spacing-xl: 14px;
  --spacing-2xl: 16px;

  /* 모바일 기본 폰트 사이즈 */
  --font-xs: 13px;
  --font-sm: 14px;
  --font-base: 15px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 20px;
  --font-2xl: 24px;

  --transition-fast: 0.2s ease-in;
  --transition-base: 0.3s;
}

@media (min-width: 768px) {
  :root {
    --font-xs: 14px;
    --font-sm: 15px;
    --font-base: 16px;
    --font-md: 17px;
    --font-lg: 20px;
    --font-xl: 24px;
    --font-2xl: 28px;
  }
}

/* 기본리셋 */
* {
  box-sizing: border-box;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
p,
button,
table,
th,
td,
pre {
  margin: 0;
  padding: 0;
}

body,
div,
dl,
dt,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
p,
th,
td,
input,
textarea,
select,
button,
pre,
a {
  font-family: 'Pretendard';
  color: #222;
}

textarea {
  width: 100%;
}

select,
input,
img,
button {
  vertical-align: middle;
}

ul,
ol,
li {
  list-style-type: none;
}

.hide,
legend,
hr,
caption span {
  position: absolute;
  left: -3000%;
}

em,
address {
  font-style: normal;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

a {
  color: #666;
  text-decoration: none;
}

a:focus,
a:hover {
  text-decoration: none;
}

fieldset,
img,
button {
  border: 0;
  background: none;
}

select {
  height: 30px \0 IE8;
}

ul {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}
/* IE8 전용*/
input:focus {
  outline: none;
}

.clear {
  zoom: 1;
  clear: both;
}

.clear:after {
  content: '';
  display: block;
  clear: both;
}

::-moz-placeholder {
  color: #7d7d7d !important;
  opacity: 1;
}

::placeholder {
  color: #7d7d7d !important;
  opacity: 1;
}

:-webkit-input-placeholder {
  color: #7d7d7d !important;
  font-size: 24px;
}

:-ms-input-placeholder {
  color: #7d7d7d !important;
}

.blind {
  text-indent: -99999px;
  position: absolute;
  top: -9999px;
  left: -9999px;
}

input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  border: none;
  background-color: transparent;
}
input {
  background-color: #fff;
}
input:read-only {
  background-color: #eef3fb;
}

body {
  height: calc(var(--vh, 1vh) * 100);
  font-family: var(--font-family);
  color: var(--black-color);
  user-select: none;
}

/* PC 환경: 컨텐츠(480px) 밖 좌우 여백 배경색 */
@media (min-width: 481px) {
  body {
    background-color: #f7c8da;
  }
}
img {
  width: 100%;
}

.wrap {
  position: relative;
  width: var(--width-base);
  height: var(--vh, 100vh);
  margin: 0 auto;
  background-color: var(--main-color);
  font-family: 'Pretendard';
}

.floatingBtn {
  z-index: 998;
  position: fixed;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--width-base);
  width: 90%;
  margin: 0 auto;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: animation infinite 1.5s;
  transform: translate(-50%, 0);
  pointer-events: auto;
  cursor: pointer;
}

@keyframes animation {
  0% {
    bottom: 2%;
  }
  50% {
    bottom: 2.5%;
  }
  100% {
    bottom: 2%;
  }
}

.required {
  color: var(--main-color);
  font-weight: 600;
}

.congratulations {
  padding-top: 10px;
  text-align: center;
  font-size: var(--font-base);
  font-weight: 300;
  color: var(--main-color);
}
.msg {
  font-size: 12px;
}

.msg.error {
  color: #c32424;
}
.msg.normal {
  color: #666;
}
.msg.success:before {
  content: '✔';
  width: 12px;
  height: 12px;
  color: green;
  margin-left: 10px;
}

.expire {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}
.expire strong {
  font-weight: 500;
  color: #ff4d4f;
}
/* ===== Checkbox ===== */
.checkbox_wrap {
  display: flex;
  align-items: center;
}
.checkbox_wrap input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox_wrap input[type='checkbox'] + label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: var(--font-md);
  color: var(--black-color);
  letter-spacing: -0.012rem;
  cursor: pointer;
  user-select: none;
}
.checkbox_wrap input[type='checkbox'] + label.all {
  font-weight: 600;
}
.checkbox_wrap input[type='checkbox'] + label::before {
  content: '';
  background: url('../images/ico_check2_off.svg') no-repeat center;
  display: inline-block;
  width: 24px;
  height: 24px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.checkbox_wrap input[type='checkbox']:checked + label::before {
  background-image: url('../images/ico_check2_on.svg');
}
.consent_item.all .checkbox_wrap input[type='checkbox'] + label::before {
  background: url('../images/ico_check.svg') no-repeat center
    var(--border-color);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}
.consent_item.all
  .checkbox_wrap
  input[type='checkbox']:checked
  + label::before {
  border-color: var(--main-color);
  background-color: var(--main-color);
}

.inq .segment {
  flex: 1;
}
.segment input {
  display: none;
}
.segment label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  line-height: 60px;
  height: 60px;
  padding: 0 var(--spacing-xl);
  border: 1px solid var(--bg-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  font-size: var(--font-lg);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}
.segment select {
  font-size: var(--font-sm);
}
.segment input:checked + label {
  z-index: 1;
  border: 1px solid var(--main-color);
  border-radius: 4px;
  background-color: var(--main-color);
  color: #fff;
}

/* ===== Select===== */
.select-box {
  border-radius: 10px;
  overflow: hidden;
}
.select-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #f8f8f8;
}
.select-box.open {
  border: 1px solid #ddd;
}

.select-box.open .select-header {
  border-bottom: 1px solid #ddd;
}
.select-header span {
  font-size: 15px;
  color: #333;
}
.arrow {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}
.select-box.open .arrow {
  transform: rotate(0deg);
}
.select-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.25s ease;
  background: #fff;
}
.select-box.open .select-list {
  max-height: 150px;
}
.select-list li {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
}
.select-list li:hover {
  background: #f2f2f2;
}
.select-list li.active {
  background: #f5f5f5;
  font-weight: 500;
}

/* ===== Button ===== */
.btn {
  width: 100%;
  padding: var(--spacing-2xl) 0;
  background-color: var(--black-color);
  color: var(--white-color);
  font-size: var(--font-xl);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
  border: none;
  cursor: pointer;
}
.btn.black {
  background-color: var(--black-color);
}
.btn.pink {
  background-color: var(--main-color);
}
.btn:disabled {
  background-color: var(--black-color);
  cursor: not-allowed;
}
.send-btn {
  width: 150px;
  padding: 0 10px;
  background-color: var(--white-color);
  border: 1px solid var(--black-color);
  color: var(--black-color);
  font-size: var(--font-sm);
}
.send-btn:disabled {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-tertiary);
  cursor: not-allowed;
}
.view_detail_btn {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: var(--font-xs);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-weight: 400;
}
.view_detail_btn:hover {
  text-decoration: underline;
}
.submit-btn {
  margin-top: 20px;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: none;
  background: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.question .btn {
  font-size: var(--font-md);
}

/* 아이콘 영역 */
.call_icon_wrap {
  display: flex;
  justify-content: center;
  margin: 32px 0 24px;
}
.call_icon {
  width: 120px;
  height: 120px;
  background: #ff7ab8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  position: relative;
}
.call_icon::before,
.call_icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 122, 184, 0.4);
  animation: ripple 2s infinite;
}

.call_icon::after {
  animation-delay: 1s;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ===== terms ===== */
.consent_list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: var(--font-base);
  margin-bottom: var(--spacing-2xl);
  font-weight: 500;
}
.consent_item {
  width: 100%;
  padding: var(--spacing-lg);
}
.consent_item.all {
  background: var(--bg-light);
  border-radius: var(--spacing-lg);
}
.consent_item_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.consent_item_row.marketing {
  justify-content: flex-start;
  margin-left: 30px;
  gap: var(--spacing-md);
}
.consent-detail {
  display: none;
  background: var(--bg-lighter);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  margin-top: var(--spacing-sm);
  font-size: var(--font-base);
  color: var(--text-secondary);
  line-height: 1.2;
}
.consent-detail b {
  display: block;
  padding: 10px 0;
}
.question_wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 50px;
}
.question_list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.question_list.inq {
  flex-direction: row;
}
/* ===== Modaㅣ ===== */
#dim {
  display: none;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: var(--width-base);
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
/* ===== Modal Loading Spinner ===== */
.modal-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 50;
  border-radius: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.modal-loading-overlay.active {
  display: flex;
}
.modal-loading-spinner {
  width: 88px;
  height: 88px;
  border: 5px solid #f0d0e0;
  border-top-color: var(--main-color);
  border-radius: 50%;
  animation: modal-spin 0.75s linear infinite;
}
.modal-loading-text {
  font-size: 20px;
  color: #888;
  font-weight: 500;
}
@keyframes modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal_overlay {
  display: none;
  z-index: 999;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: calc(var(--width-base) - 40px);
  transform: translate(-50%, -50%);
  justify-content: center;
  align-items: center;
}
.modal_overlay.active {
  display: flex;
}
.modal {
  position: relative;
  width: 100%;
  max-width: var(--width-base);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}
.modal_content {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background-color: var(--white-color);
  box-shadow: var(--shadow-md);
  padding: 28px 24px 24px;
  overflow: hidden;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
}
.modal_header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 20px 0;
  border-bottom: 1px solid var(--bg-border);
}
.modal_title {
  flex: 1;
  color: var(--black-color);
  font-size: var(--font-lg);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.modal_close {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.modal_close_btn {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 10;
}
.modal_close:hover {
  opacity: 0.7;
}
.modal_body {
  padding-bottom: 60px;
  overflow-y: auto;
}
.question .modal_body {
  padding-bottom: 30px;
}
.modal_footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 40px;
  flex-shrink: 0;
  text-align: center;
}
.modal_desc {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.6;
  text-align: left;
}
.modal_body::-webkit-scrollbar {
  width: 6px;
}
.modal_body::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 3px;
}
.modal_body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
.modal_body::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

.modal_body .form_wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.modal_body .form_group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal_overlay .form_group input {
  display: block;
  width: 100%;
  height: 40px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 0 20px;
  font-size: var(--font-base);
}
.modal_overlay .form_group label {
  font-size: var(--font-sm);
}

/* 하단슬라이드 팝업 */
.modal_overlay.slide {
  display: flex;
  z-index: 999;
  position: fixed;
  top: auto;
  bottom: -1000px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--width-base);
  max-width: var(--width-base);
  transition: 0.5s;
}
.modal_overlay.slide .modal_content {
  border-radius: 12px 12px 0 0;
}

.modal_overlay.slide h2 {
  padding: 20px 0;
  text-align: center;
  font-size: var(--font-xl);
}

/* // 완료 모달 스타일 */
.modal_overlay.complete .modal_header {
  justify-content: center;
  border-bottom: none;
  align-items: normal;
}
.modal_overlay.complete .modal_title {
  text-align: center;
}
.modal_overlay.complete .modal_desc {
  text-align: center;
}
.modal_overlay.complete .modal_footer {
  display: flex;
  gap: 16px;
}
.modal_overlay.complete .modal_footer .btn {
  font-size: var(--font-lg);
}
.modal_content.myinfo .modal_header {
  border-bottom: none;
}
