@charset "UTF-8";

/* ========== 레이어 팝업 기본 스타일 ========== */
#leadPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* 팝업 배경 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
    z-index: 999;
}

/* 팝업 컨텐츠 */
.popup-content {
    position: fixed;
    top: 5%;  /* 화면 상단에서 5% 여백 */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 30px;
    width: 400px;
    max-height: 90vh; /* 전체 화면 높이의 90%까지만 차지 */
    overflow-y: auto; /* 내용이 넘치면 스크롤 표시 */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* 팝업 헤더 */
.popup-header h3 {
    font-size: 32px;
}

.popup-header p {
    color: var(--gray500);
    margin-top: 10px;
}

/* 팝업 닫기 */
.popup-close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ========== 입력 폼 스타일 ========== */
.leadform {
    gap: 10px;
    margin-top: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.required {
    color: red;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid var(--gray300);
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    height: 80px;
}

/* ========== 버튼 스타일 ========== */
.submit-btn {
    width: 100%;
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--darkblue);
}

/* 체크박스 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}
.checkbox-group p {
    font-size: 16px;
    margin-bottom: 6px;
}
.checkbox-group div {
    display: flex;
    gap: 20px;
    padding: 8px 12px;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
}
.checkbox-group label {
    font-size: 14px;
    padding-left: 0;
}

/* 개인정보 보호 */
.privacy-box {
    background: var(--superLightNavy);
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    overflow-y: auto;
    height: 60px;
    margin-top: 15px;
}

.privacy-box p {
    padding-bottom: 10px;
}

/* 개인정보 보호 */
.ageRestrictionMessage-box {
    padding-top: 15px;
    line-height: 1.6;
}

.notice {
    font-size: 14px;
}
.agree-title {
    font-weight: bold;
    margin-top: 20px;
}

/* ========== 제출 완료 ========== */
.submission-success {
    display: block;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    height: 100%;
    justify-content: center;
}

.submission-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    height: 100%;
    justify-content: center;
}


.success-icon {
    display: grid;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon img {
    width: 96px;  
    height: auto;
}
.success-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.success-message {
    font-size: 14px;
    color: #777;
    margin-top: 8px;
}

.close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background: var(--gray500);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    background: var(--gray400);
}

/* ========== 반응형 (모바일 최적화) ========== */
@media (max-width: 768px) {
    .popup-content {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 20px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .popup-header h3, 
    .success-title {
        font-size: 24px;
    }

    .submit-btn {
        margin-top: 20px;
    }
}

