/*
 * #64317 보험료 계산 / 상담신청 / 로더 모달 전용 CSS
 * 퍼블본: LightMdlFormBtsCalcSns.html / LightMdlFormQckFree.html / LightMdlLoaderSpn.html
 *
 * 모든 셀렉터를 .lpd-calc-new / .lpd-consult-new / .lpd-loader 루트 클래스로 격리하여
 * 사이트의 reset.css / bootstrap.css 와 충돌 방지.
 */

/* =================================================================
 * Bootstrap CSS 미로드 사이트(gdnmall, cate-webbuilder 등) 대응:
 * .modal-backdrop 스타일 보완 — Bootstrap이 있는 사이트는 이미 정의되어 있어 무해함
 * ================================================================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in   { opacity: 0.5; }

/* Bootstrap CSS 미로드 사이트(gdnmall 등): .modal 필수 스타일 보완
   Bootstrap이 있는 사이트는 이미 동일값이 정의되어 무해함 */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}
.modal.in {
    overflow-x: hidden;
    overflow-y: auto;
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}

/* =================================================================
 * 사이트 reset.css의 전역 text-align:center placeholder 규칙 해제
 * (gdnmall common.css 등 일부 사이트 적용 대상)
 * ================================================================= */
.lpd-calc-new input::-webkit-input-placeholder,
.lpd-consult-new input::-webkit-input-placeholder { text-align: left; }
.lpd-calc-new input::-moz-placeholder,
.lpd-consult-new input::-moz-placeholder { text-align: left; }
.lpd-calc-new input:-ms-input-placeholder,
.lpd-consult-new input:-ms-input-placeholder { text-align: left; }
.lpd-calc-new input::placeholder,
.lpd-consult-new input::placeholder { text-align: left; }

/* =================================================================
 * 보험료 계산 모달 — 전체화면 (꽉 채움 + 내용 길이에 따라 스크롤)
 * ================================================================= */
.modal-dialog:has(.lpd-calc-new) {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

.modal-dialog:has(.lpd-calc-new) .modal-content {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* =================================================================
 * 상담신청 모달 — Bottom-sheet (하단 고정 + 상단 라운드)
 * ================================================================= */
.modal-dialog:has(.lpd-consult-new) {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
}

.modal-dialog:has(.lpd-consult-new) .modal-content {
    border: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08) !important;
}



/* =================================================================
 * 공통 변수 (모달 컨테이너 단위로 정의)
 * ================================================================= */
.lpd-calc-new,
.lpd-consult-new,
.lpd-loader {
    --lpd-primary-orange: #ff9b00;
    --lpd-primary-orange-active: #f57d00;
    --lpd-text-primary: #1d1d1f;
    --lpd-text-secondary: #3a3a3c;
    --lpd-text-soft: #737373;
    --lpd-text-placeholder: #aeaeb2;
    --lpd-text-white: #ffffff;
    --lpd-text-kakao: #191919;
    --lpd-border-default: #d1d1d6;
    --lpd-border-soft: #dcdcde;
    --lpd-status-error: #ff3b30;
    --lpd-bg-white: #ffffff;
    --lpd-bg-light-gray: #f5f5f5;
    --lpd-kakao: #fee500;
    --lpd-naver: #03a94d;

    color: var(--lpd-text-primary);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", "Helvetica Neue", sans-serif;
}

.lpd-calc-new,
.lpd-consult-new {
    box-sizing: border-box;
}

.lpd-calc-new *,
.lpd-consult-new * {
    box-sizing: border-box;
    font-family: inherit !important;
}

.lpd-loader,
.lpd-loader * {
    box-sizing: border-box;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", "Helvetica Neue", sans-serif !important;
}

.lpd-calc-new button,
.lpd-calc-new input,
.lpd-calc-new select,
.lpd-consult-new button,
.lpd-consult-new input {
    font: inherit;
}

.lpd-calc-new button,
.lpd-consult-new button {
    cursor: pointer;
}

/* =================================================================
 * Calc 모달 (LightMdlFormBtsCalcSns)
 * ================================================================= */
.lpd-calc-new {
    width: 100%;
    min-height: 100%;
    background: var(--lpd-bg-white);
    padding: 40px 20px;
}

.lpd-calc-new .lpd-content {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 32px;
}

.lpd-calc-new .lpd-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.lpd-calc-new .lpd-close-btn svg {
    display: block;
    width: 32px;
    height: 32px;
}

.lpd-calc-new .lpd-intro {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 16px;
}

.lpd-calc-new .lpd-title-block {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-right: 40px;
}

.lpd-calc-new .lpd-title {
    margin: 0;
    color: var(--lpd-text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.lpd-calc-new .lpd-subtitle {
    margin: 0;
    color: var(--lpd-text-secondary);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* SNS section */
.lpd-calc-new .lpd-sns-section,
.lpd-consult-new .lpd-sns-section {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
}

@keyframes lpdTooltipBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.lpd-calc-new .lpd-tooltip,
.lpd-consult-new .lpd-tooltip {
    position: relative;
    width: 100%;
    animation: lpdTooltipBob 2s ease-in-out infinite;
}

.lpd-calc-new .lpd-tooltip-badge,
.lpd-consult-new .lpd-tooltip-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--lpd-text-primary);
    color: var(--lpd-text-white);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

.lpd-calc-new .lpd-tooltip-arrow,
.lpd-consult-new .lpd-tooltip-arrow {
    position: absolute;
    top: 22px;
    left: 10px;
    width: 12px;
    height: 8px;
}

.lpd-calc-new .lpd-sns-buttons,
.lpd-consult-new .lpd-sns-buttons {
    display: flex;
    width: 100%;
    gap: 8px;
}

.lpd-calc-new .lpd-sns-btn,
.lpd-consult-new .lpd-sns-btn {
    display: flex;
    height: 48px;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    transition: opacity 0.2s ease;
}

.lpd-calc-new .lpd-sns-btn.kakao,
.lpd-consult-new .lpd-sns-btn.kakao {
    color: var(--lpd-text-kakao);
    background: var(--lpd-kakao);
}

.lpd-calc-new .lpd-sns-btn.naver,
.lpd-consult-new .lpd-sns-btn.naver {
    color: var(--lpd-text-white);
    background: var(--lpd-naver);
}

.lpd-calc-new .lpd-divider {
    position: relative;
    display: flex;
    width: 100%;
    height: 1px;
    align-items: center;
    justify-content: center;
    background: var(--lpd-border-default);
}

.lpd-calc-new .lpd-divider span {
    padding: 0 8px;
    background: var(--lpd-bg-white);
    color: var(--lpd-text-secondary);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

/* Form fields */
.lpd-calc-new .lpd-form-fields,
.lpd-consult-new .lpd-form-fields {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 24px;
}

.lpd-calc-new .lpd-field,
.lpd-consult-new .lpd-field {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}

.lpd-calc-new .lpd-label,
.lpd-consult-new .lpd-label {
    margin: 0;
    color: var(--lpd-text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.lpd-calc-new .lpd-name-row {
    display: flex;
    width: 100%;
    gap: 8px;
}

.lpd-calc-new .lpd-input,
.lpd-consult-new .lpd-input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--lpd-border-default);
    border-radius: 6px;
    background: var(--lpd-bg-white);
    color: var(--lpd-text-primary);
    padding: 0 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    outline: none;
    transition: border-color 0.2s ease;
}

.lpd-calc-new .lpd-input::placeholder,
.lpd-consult-new .lpd-input::placeholder {
    color: var(--lpd-text-placeholder);
}

.lpd-calc-new .lpd-input:focus,
.lpd-consult-new .lpd-input:focus {
    border-color: var(--lpd-primary-orange);
}

/* 성별 라디오 그룹 */
.lpd-calc-new .lpd-gender-group {
    display: flex;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid var(--lpd-border-soft);
    border-radius: 6px;
}

.lpd-calc-new .lpd-gender-btn {
    display: flex;
    width: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #b8b8bb;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lpd-calc-new .lpd-gender-btn.is-active {
    border-color: var(--lpd-primary-orange);
    background: var(--lpd-bg-white);
    color: var(--lpd-primary-orange);
}

/* 거주지역 select */
.lpd-calc-new .lpd-select-wrap {
    position: relative;
    width: 100%;
}

.lpd-calc-new .lpd-select-control {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--lpd-border-default);
    border-radius: 6px;
    background: var(--lpd-bg-white);
    color: var(--lpd-text-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.lpd-calc-new .lpd-select-control:focus {
    border-color: var(--lpd-primary-orange);
}

.lpd-calc-new .lpd-select-control:invalid,
.lpd-calc-new .lpd-select-control option[value=""] {
    color: var(--lpd-text-placeholder);
}

.lpd-calc-new .lpd-select-icon {
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 12px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #b8b8bb;
}

.lpd-calc-new .lpd-select-icon svg path {
    fill: currentColor;
}

/* 연락처 / 인증 */
.lpd-calc-new .lpd-phone-block {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}

.lpd-calc-new .lpd-phone-field,
.lpd-consult-new .lpd-phone-field {
    display: flex;
    height: 48px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--lpd-border-default);
    border-radius: 6px;
    background: var(--lpd-bg-white);
}

.lpd-calc-new .lpd-phone-field:focus-within,
.lpd-consult-new .lpd-phone-field:focus-within {
    border-color: var(--lpd-primary-orange);
}

.lpd-calc-new .lpd-phone-prefix,
.lpd-consult-new .lpd-phone-prefix {
    flex-shrink: 0;
    padding: 12px 12px 12px 16px;
    color: var(--lpd-text-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
}

.lpd-calc-new .lpd-phone-input,
.lpd-consult-new .lpd-phone-input {
    min-width: 0;
    height: 100%;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--lpd-text-primary);
    padding: 12px 12px 12px 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    outline: none;
}

.lpd-calc-new .lpd-phone-input::placeholder,
.lpd-consult-new .lpd-phone-input::placeholder {
    color: var(--lpd-text-placeholder);
}

.lpd-calc-new .lpd-verify-btn {
    display: flex;
    min-width: 80px;
    height: 100%;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid var(--lpd-border-default);
    border-radius: 0 5px 5px 0;
    color: var(--lpd-text-placeholder);
    background: var(--lpd-bg-light-gray);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
}

.lpd-calc-new .lpd-verify-btn.is-enabled {
    color: var(--lpd-text-white);
    background: var(--lpd-primary-orange);
    border-left-color: var(--lpd-primary-orange);
}

.lpd-calc-new .lpd-verification-field {
    display: flex;
    height: 48px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--lpd-border-default);
    border-radius: 6px;
}

.lpd-calc-new .lpd-verification-field:focus-within {
    border-color: var(--lpd-primary-orange);
}

.lpd-calc-new .lpd-verification-field input {
    height: 100%;
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--lpd-text-primary);
    padding: 0 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    outline: none;
}

.lpd-calc-new .lpd-verification-field input::placeholder {
    color: var(--lpd-text-placeholder);
}

.lpd-calc-new .lpd-verification-field button {
    height: 100%;
    flex-shrink: 0;
    padding: 0 16px;
    border: 0;
    color: var(--lpd-text-primary);
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: underline;
    white-space: nowrap;
}

/* 인증 완료 — disabled 필드 */
.lpd-calc-new .lpd-verification-disabled {
    display: flex;
    height: 48px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--lpd-border-default);
    border-radius: 6px;
    background: var(--lpd-bg-light-gray);
}

.lpd-calc-new .lpd-verification-disabled input {
    height: 100%;
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--lpd-text-placeholder);
    padding: 0 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    outline: none;
}

.lpd-calc-new .lpd-verification-disabled button {
    height: 100%;
    flex-shrink: 0;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid var(--lpd-border-default);
    color: var(--lpd-text-placeholder);
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    cursor: default;
}

/* 인증번호 발송 안내 helper-text */
.lpd-calc-new .lpd-helper-text {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--lpd-text-soft);
}

.lpd-calc-new .lpd-text-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: inherit;
    font-weight: 400;
    color: var(--lpd-text-primary);
    text-decoration: underline;
    cursor: pointer;
}

/* 개인정보 동의 */
.lpd-calc-new .lpd-privacy-label,
.lpd-consult-new .lpd-privacy-label {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lpd-calc-new .lpd-privacy-input,
.lpd-consult-new .lpd-privacy-input {
    display: none;
}

.lpd-calc-new .lpd-privacy-visual,
.lpd-consult-new .lpd-privacy-visual {
    display: flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lpd-border-soft);
    border-radius: 4px;
    background: var(--lpd-bg-white);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lpd-calc-new .lpd-privacy-input:checked + .lpd-privacy-visual,
.lpd-consult-new .lpd-privacy-input:checked + .lpd-privacy-visual {
    border-color: var(--lpd-primary-orange);
    background: var(--lpd-primary-orange);
}

.lpd-calc-new .lpd-privacy-visual::after,
.lpd-consult-new .lpd-privacy-visual::after {
    content: "";
    display: none;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.lpd-calc-new .lpd-privacy-input:checked + .lpd-privacy-visual::after,
.lpd-consult-new .lpd-privacy-input:checked + .lpd-privacy-visual::after {
    display: block;
}

.lpd-calc-new .lpd-privacy-copy,
.lpd-consult-new .lpd-privacy-copy {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lpd-calc-new .lpd-privacy-title,
.lpd-consult-new .lpd-privacy-title {
    color: var(--lpd-text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.lpd-calc-new .lpd-privacy-link,
.lpd-consult-new .lpd-privacy-link {
    margin-left: auto;
    color: var(--lpd-text-secondary);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: underline;
}

/* CTA */
.lpd-calc-new .lpd-cta-btn {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    color: var(--lpd-text-white);
    background: var(--lpd-primary-orange);
    transition: background-color 0.2s ease;
}

.lpd-calc-new .lpd-cta-btn:hover {
    background: var(--lpd-primary-orange-active);
}

.lpd-calc-new .lpd-cta-btn:disabled {
    color: var(--lpd-text-placeholder);
    background: #f3f3f6;
    cursor: default;
}

/* =================================================================
 * Consult 모달 (LightMdlFormQckFree)
 * ================================================================= */
.lpd-consult-new {
    width: 100%;
    border-radius: 16px 16px 0 0;
    background: var(--lpd-bg-white);
    padding: 40px 20px;
}

.lpd-consult-new .lpd-inner {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 32px;
}

.lpd-consult-new .lpd-header {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.lpd-consult-new .lpd-title-block {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.lpd-consult-new .lpd-title {
    margin: 0;
    color: var(--lpd-text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.lpd-consult-new .lpd-subtitle {
    margin: 0;
    color: var(--lpd-text-soft);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.lpd-consult-new .lpd-close-btn {
    display: flex;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.lpd-consult-new .lpd-close-btn svg {
    display: block;
    width: 32px;
    height: 32px;
}

.lpd-consult-new .lpd-submit-btn {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 6px;
    color: var(--lpd-text-white);
    background: var(--lpd-primary-orange);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    transition: opacity 0.2s ease;
}

.lpd-consult-new .lpd-submit-btn:hover {
    opacity: 0.9;
}

/* =================================================================
 * Loader (LightMdlLoaderSpn) — 보험료 계산중 오버레이
 * ================================================================= */
.lpd-loader {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lpd-bg-white);
    border-radius: inherit;
}

/* 전체화면 로더 (모달 외부, insur_detail에서 사용) */
.lpd-loader.lpd-loader-fixed {
    position: fixed;
    z-index: 9999;
    border-radius: 0;
}

.lpd-loader .lpd-loader-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.lpd-loader .lpd-spinner {
    position: relative;
    width: 48px;
    height: 48px;
}

.lpd-loader .lpd-spinner-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    margin-left: -5px;
    border-radius: 9999px;
    background: var(--lpd-primary-orange);
    animation: lpdDotFade 1.2s linear infinite;
}

.lpd-loader .lpd-spinner-dot:nth-child(1) { transform: rotate(0deg)   translate(0, -19px); animation-delay: 0s;    }
.lpd-loader .lpd-spinner-dot:nth-child(2) { transform: rotate(45deg)  translate(0, -19px); animation-delay: 0.15s; }
.lpd-loader .lpd-spinner-dot:nth-child(3) { transform: rotate(90deg)  translate(0, -19px); animation-delay: 0.3s;  }
.lpd-loader .lpd-spinner-dot:nth-child(4) { transform: rotate(135deg) translate(0, -19px); animation-delay: 0.45s; }
.lpd-loader .lpd-spinner-dot:nth-child(5) { transform: rotate(180deg) translate(0, -19px); animation-delay: 0.6s;  }
.lpd-loader .lpd-spinner-dot:nth-child(6) { transform: rotate(225deg) translate(0, -19px); animation-delay: 0.75s; }
.lpd-loader .lpd-spinner-dot:nth-child(7) { transform: rotate(270deg) translate(0, -19px); animation-delay: 0.9s;  }
.lpd-loader .lpd-spinner-dot:nth-child(8) { transform: rotate(315deg) translate(0, -19px); animation-delay: 1.05s; }

@keyframes lpdDotFade {
    0%, 100% { opacity: 0.2; }
    50%      { opacity: 1; }
}

.lpd-loader .lpd-loader-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lpd-loader .lpd-loader-title {
    margin: 0;
    color: var(--lpd-text-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
}

.lpd-loader .lpd-loader-desc {
    margin: 0;
    color: var(--lpd-text-secondary);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

/* =================================================================
 * 도움말 팝업 (인증문자 미도착 안내)
 * ================================================================= */
.lpd-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 24px;
    box-sizing: border-box;
}

.lpd-help-card {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

.lpd-help-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1d1d1f;
}

.lpd-help-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.lpd-help-body {
    padding: 16px 20px 24px;
}

.lpd-help-subtitle {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.5;
}

.lpd-help-list {
    margin: 0;
    padding: 0 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lpd-help-list li {
    font-size: 13px;
    font-weight: 400;
    color: #3a3a3c;
    line-height: 1.6;
}

/* =================================================================
 * 완료 팝업 (상담신청 / 보험료계산 공통 — LightMdlDoneSqClbk / LightMdlDoneSq)
 * insur_detail.html에서 ng-if="donePopup.show"로 제어, 파라미터로 title/desc 분기
 * ================================================================= */
.lpd-done-overlay {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    right: 0;
    bottom: env(safe-area-inset-bottom, 0);
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", "Helvetica Neue", sans-serif;
}

.lpd-done-overlay * {
    box-sizing: border-box;
    font-family: inherit;
}

.lpd-done-card {
    display: flex;
    width: 280px;
    height: 252px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 16px;
    border-radius: 6px;
    background: #ffffff;
}

.lpd-done-message {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lpd-done-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #fff3e0;
    flex-shrink: 0;
}

.lpd-done-copy {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lpd-done-title {
    margin: 0;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    white-space: nowrap;
}

.lpd-done-desc {
    margin: 0;
    color: #3a3a3c;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.lpd-done-btn {
    width: 100%;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: #ff9b00;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.lpd-done-btn:hover,
.lpd-done-btn:active {
    background: #e67000;
}

/* ===== Section 4 modals: 보장내용 / 가입예시 / 가입시 알아야할 사항 ===== */
/* cate-webbuilder .layer--top-fixed 방식과 동일:
   헤더 div → position:fixed / 컨테이너 → padding-top으로 높이 보완 */

/* 모달 다이얼로그 전체화면 고정 — Bootstrap CSS 미로드 환경(gdnmall 등)에서도 뷰포트 기준으로 렌더링 */
.modal-dialog:has(.light-cont-item-prd-dtl-md-type1),
.modal-dialog:has(.light-cont-item-prd-dtl-md-type2),
.modal-dialog:has(.light-cont-item-prd-dtl-md-type3) {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.modal-dialog:has(.light-cont-item-prd-dtl-md-type1) .modal-content,
.modal-dialog:has(.light-cont-item-prd-dtl-md-type2) .modal-content,
.modal-dialog:has(.light-cont-item-prd-dtl-md-type3) .modal-content {
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* section: 전체 너비 + padding-top 제거 + 폰트 공통 상세 기준으로 강제 */
.light-cont-item-prd-dtl-md-type1,
.light-cont-item-prd-dtl-md-type2,
.light-cont-item-prd-dtl-md-type3 {
    max-width: 100% !important;
    padding-top: 0 !important;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", "Helvetica Neue", sans-serif !important;
}

.light-cont-item-prd-dtl-md-type1 *,
.light-cont-item-prd-dtl-md-type2 *,
.light-cont-item-prd-dtl-md-type3 * {
    font-family: inherit !important;
}

/* th 폭 고정 — table-layout:fixed 환경에서 컬럼이 50/50으로 나뉘는 문제 방지
   auto 레이아웃 + nowrap 조합으로 th 너비를 콘텐츠 기준으로 고정 */
.light-cont-item-prd-dtl-md-type1 table,
.light-cont-item-prd-dtl-md-type2 table,
.light-cont-item-prd-dtl-md-type3 table {
    table-layout: auto !important;
}
.light-cont-item-prd-dtl-md-type1 th,
.light-cont-item-prd-dtl-md-type2 th,
.light-cont-item-prd-dtl-md-type3 th {
    min-width: 100px !important;
    white-space: nowrap !important;
    width: auto !important;
}

/* 고정 헤더 높이(padding 20+12px + 콘텐츠 24px = 56px = 3.5rem)만큼 wrapper 상단 보완 */
.light-cont-item-prd-dtl-md-type1 > div,
.light-cont-item-prd-dtl-md-type2 > div,
.light-cont-item-prd-dtl-md-type3 > div {
    padding-top: 3.5rem;
}

/* 타이틀+닫기 div: 뷰포트 최상단 고정 (cate-webbuilder .layer-header 방식) */
.light-cont-item-prd-dtl-md-type1 header > div:first-child,
.light-cont-item-prd-dtl-md-type2 header > div:first-child,
.light-cont-item-prd-dtl-md-type3 header > div:first-child {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100051;
    background-color: #fff;
    padding: 1.25rem 1.25rem 0.75rem;
    box-sizing: border-box;
}

/* 보장내용 모달(Type1) 테이블 border 보정
 * Tailwind Preflight가 :where(.standalone-page)로 스코핑되어 모달에서 border-width:0/border-style:solid가 미적용.
 * 브라우저 기본 border-width:medium이 노출되지 않도록 :where()로 specificity=0으로 낮춰
 * Tailwind 유틸리티(.border-t 등 specificity 0,1,0)가 우선하게 함 */
:where(.light-cont-item-prd-dtl-md-type1) table,
:where(.light-cont-item-prd-dtl-md-type1) tr,
:where(.light-cont-item-prd-dtl-md-type1) th,
:where(.light-cont-item-prd-dtl-md-type1) td {
    border-width: 0;
    border-style: solid;
}
:where(.light-cont-item-prd-dtl-md-type1) table {
    border-color: inherit;
    border-collapse: collapse;
}


