/* 팝업 기본 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    /* 🔥 핵심: 정중앙 배치용 */
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    /* 딤드 */
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 28px 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: 'Pretendard', sans-serif;
}

.popup-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}

.popup-content fieldset legend,
.popup-content label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: block;
}

.popup-content input,
.popup-content select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.popup-content select {
    appearance: none;
    background: url('/res/icons/chevron-down.svg') no-repeat right 12px center;
    background-size: 16px;
    margin-bottom: 8px;
}

.popup-content textarea {
    width: 100%;
    height: 100px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    resize: none;
    line-height: 1.5;
}

.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 2px;
  }

/* 아이콘 크기 및 간격 */
.pill__icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
  }
  
  /* 기본 Pill 스타일 */
  .pill {
    background: #f2f2f2;
    color: #333;
    border: none;
    border-radius: 24px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  
  /* hover (선택 안된 경우에만) */
  .pill:not(.pill--selected):hover {
    background: #e0e0e0;
    color: #222;
  }
  
  /* 선택된 Pill */
  .pill.pill--selected {
    background: #000;
    color: #fff;
  }
  
  /* 선택된 Pill 에 hover 가 붙어도 동일하게 유지 */
  .pill.pill--selected:hover {
    background: #000 !important;
    color: #fff !important;
  }

.popup-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
}

.popup-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-actions button:first-child {
    background: #f2f2f2;
    color: #333;
}

.popup-actions .cta-button {
    background-color: #ff6b00;
    color: white;
}

.popup-actions .cta-button:hover {
    background-color: #ff6b00;
}

.popup-overlay.hidden {
    display: none;
}



/* group wrapper */
.checkbox-group {
    display: flex;
    align-items: center;
    vertical-align: top;
    gap: 4px;
    /* tighter spacing */
    margin: 4px 0;
    /* less vertical space */
}

/* override the generic label bottom‐margin */
.checkbox-group label {
    margin: 0;
    font-size: 14px;
}

/* only styling the “small” checkbox variant */
input[type="checkbox"].checkbox-small {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid #FF6F00;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* checkmark */
input[type="checkbox"].checkbox-small::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* checked state */
input[type="checkbox"].checkbox-small:checked {
    background-color: #FF6F00;
    border-color: #FF6F00;
}

input[type="checkbox"].checkbox-small:checked::after {
    opacity: 1;
}


/* consent 영역 */
.consent-box {
    font-size: 13px;
    color: #444;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}
