@charset "UTF-8";

/* ===================================================
   [Hjcare V4 Widget - Ultra Premium Detailed Fix]
   - 모든 요소 사이즈 확대
   - 가독성 최우선 (텍스트 줄바꿈 방지)
   - 프리미엄 다크 & 골드 스타일 유지
=================================================== */

.bh_insert_widget,
.bh_insert_widget *,
.bh_insert_widget *::before,
.bh_insert_widget *::after {
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
}

.bh_insert_widget form {
    margin: 0;
    width: 100%;
}

/* 카드 전체 설정: 부모 컨테이너를 꽉 채우도록 함 */
.ds-card {
    width: 100%;
    background: #1a1d23; /* 명확한 다크 배경 부여 */
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.ds-card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 필드 정렬: 레이블과 인풋을 명확하게 배치 */
.ds-field-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.ds-field-label {
    width: 80px; /* 라벨 폭 충분히 확보 */
    font-size: 18px;
    font-weight: 700;
    color: #d4af37;
    text-align: left;
    flex-shrink: 0;
    white-space: nowrap;
}

.ds-field-input {
    flex: 1;
}

/* 인풋 사이즈 대폭 확대 */
.ds-field-input input[type="text"],
.ds-field-input input[type="tel"],
.ds-field-input input[type="number"] {
    width: 100% !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 18px !important;
    padding: 0 20px !important;
    outline: none;
    transition: all 0.3s ease;
}

.ds-field-input input:focus {
    border-color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* 개인정보 동의 영역: 한 줄 유지 및 중앙 정렬 */
.ds-privacy-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-privacy-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    white-space: nowrap; /* 글자가 세로로 떨어지지 않게 방지 */
}

.ds-privacy-check input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.ds-privacy-check input[type="checkbox"]:checked {
    background: #d4af37;
}

.ds-privacy-check input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    left: 4px;
    top: -2px;
    color: #000;
    font-size: 16px;
}

.ds-privacy-link {
    font-size: 14px;
    color: rgba(212, 175, 55, 0.8);
    text-decoration: underline;
    white-space: nowrap;
}

/* 제출 버튼 영역 */
.submit-wrap {
    width: 100%;
}

.bh_btn--primary {
    width: 100% !important;
    height: 70px !important;
    background: linear-gradient(135deg, #d4af37 0%, #f0c93a 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #111 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.3s ease;
}

.bh_btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .ds-card {
        padding: 25px 15px; /* 패딩을 더 줄여서 입력창 공간 확보 */
        gap: 18px;
    }
    .ds-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .ds-field-label {
        width: 100%;
        font-size: 16px;
        margin-bottom: 2px;
    }
    .ds-field-input {
        width: 100%;
    }
    .ds-field-input input {
        height: 54px !important;
        font-size: 16px !important;
    }
    .ds-privacy-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 15px;
    }
    .bh_btn--primary {
        height: 64px !important;
        font-size: 19px !important;
    }
}

/* Toss Style Modal Premium */
#toss-modal-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.toss-modal {
    background: #fff;
    width: 100%;
    max-width: 320px;
    border-radius: 28px;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#toss-modal-container.active .toss-modal {
    transform: scale(1);
    opacity: 1;
}

.toss-modal-content {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #191f28;
    margin-bottom: 28px;
    word-break: keep-all;
}

.toss-modal-btn {
    width: 100%;
    height: 56px;
    background: #3182f6; /* 토스 시그니처 블루 */
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.toss-modal-btn:active {
    background: #1b64da;
}
/* Done State Premium Design */
.insert_done_wrap {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 500px;
    margin: 0 auto;
}

.done-icon-box {
    width: 100px;
    height: 100px;
    background: #eef6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.done-icon-box i {
    font-size: 50px;
    color: #3182f6;
    animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.done-title {
    font-size: 28px;
    font-weight: 800;
    color: #191f28;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.done-desc {
    font-size: 17px;
    color: #4e5968;
    line-height: 1.6;
    margin-bottom: 40px;
    word-break: keep-all;
}

.done-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    height: 60px;
    background: #191f28;
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s;
}

.done-home-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Toss Style Success Modal (Premium) - Popup version if needed */
#toss-success-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.toss-success-modal {
    background: #fff;
    width: 100%;
    max-width: 360px;
    border-radius: 32px;
    padding: 40px 30px 30px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#toss-success-container.active .toss-success-modal {
    transform: translateY(0);
    opacity: 1;
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    background: #eef6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon-wrap i {
    font-size: 40px;
    color: #3182f6;
    animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes success-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.toss-success-title {
    font-size: 24px;
    font-weight: 800;
    color: #191f28;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.toss-success-desc {
    font-size: 16px;
    color: #4e5968;
    line-height: 1.6;
    margin-bottom: 32px;
    word-break: keep-all;
}

.toss-success-btn {
    width: 100%;
    height: 60px;
    background: #191f28;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.toss-success-btn:active {
    background: #000;
    transform: scale(0.98);
}

/* Privacy Policy Modal Premium */
#privacy-modal-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none; /* 숨김 상태가 기본 */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#privacy-modal-container.active {
    display: flex !important;
}

.privacy-modal {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,0.3);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#privacy-modal-container.active .privacy-modal {
    transform: translateY(0);
    opacity: 1;
}

.privacy-modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.privacy-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.privacy-close-x {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.privacy-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.privacy-content-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 20px 0 8px;
}

.privacy-content-text h4:first-child {
    margin-top: 0;
}

.privacy-content-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 4px;
}

.privacy-company-info {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.privacy-company-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.privacy-modal-footer {
    padding: 16px 24px 24px;
}

.privacy-confirm-btn {
    width: 100%;
    height: 54px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.privacy-confirm-btn:hover {
    background: #333;
}

@media (max-width: 768px) {
    .privacy-modal {
        max-height: 90vh;
    }
}
