/* ========================================
   Header (Top Banner)
======================================== */

/* ===== 탑 배너 ===== */
#top_banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #2c1810;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70px; /* 기본값 - 데스크탑 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    text-align: center;
}

#top_banner.hidden {
    transform: translateY(-100%);
}

.banner_content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: 15px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.banner_content:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.02);
}

.star_icon {
    color: #FFFFFF;
    font-size: 20px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: twinkle 2s infinite;
    font-weight: bold;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1); 
        text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

.banner_text {
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Header 반응형 디자인 */

/* 1. 데스크탑 (1200px 이상) */
@media (min-width: 1200px) {
    #top_banner {
        height: 70px;
    }
    
    .banner_content {
        font-size: 18px;
        gap: 20px;
        padding: 15px 30px;
    }
    
    .star_icon {
        font-size: 20px;
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    #top_banner {
        height: 60px;
    }
    
    .banner_content {
        font-size: 16px;
        gap: 15px;
        padding: 12px 25px;
        max-width: 500px;
        color: #FFFFFF;
    }
    
    .star_icon {
        font-size: 18px;
        color: #FFFFFF;
    }
    
    .banner_text {
        color: #FFFFFF;
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    #top_banner {
        height: 55px;
    }
    
    .banner_content {
        font-size: 14px;
        gap: 12px;
        padding: 10px 20px;
        max-width: 400px;
        color: #FFFFFF;
    }
    
    .star_icon {
        font-size: 16px;
        color: #FFFFFF;
    }
    
    .banner_text {
        color: #FFFFFF;
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    #top_banner {
        height: 55px;
    }
    
    .banner_content {
        font-size: 12px;
        gap: 8px;
        padding: 8px 15px;
        max-width: 300px;
        color: #FFFFFF;
    }
    
    .star_icon {
        font-size: 14px;
        color: #FFFFFF;
    }
    
    .banner_text {
        letter-spacing: 0.2px;
        color: #FFFFFF;
    }
}

/* ========================================
   Header Menu
======================================== */

/* ===== 헤더 메뉴 ===== */
#header {
    position: fixed;
    top: 70px; /* 탑 배너 높이만큼 아래 */
    left: 0;
    right: 0;
    z-index: 9998;
    background: transparent;
}


/* 스크롤 상태에서의 스타일 */
#header.scrolled .logo img {
    filter: none !important; /* 스크롤 시 원래 색상으로 복원 */
}

#header.scrolled .nav-list__item .link {
    color: #333333 !important; /* 스크롤 시 검은색으로 변경 */
}

#header.scrolled .nav-list__item .link:hover {
    color: #D4AF5F !important; /* 스크롤 시 호버 색상 */
}

#header.scrolled .nav-mobile__btn {
    color: #333333 !important; /* 스크롤 시 검은색으로 변경 */
}

.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    position: relative;
}

/* 로고 */
.header .logo {
    position: absolute;
    left: 10px;
    text-decoration: none;
}

.header .logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* 흰색으로 변경 */
}

/* 네비게이션 */
.header .nav {
    display: flex;
    align-items: center;
    height: 100%; /* 부모 높이 전체 차지 */
}

.header .nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%; /* 부모 높이 전체 차지 */
}

.header .nav-list__item {
    position: relative;
    width: 150px; /* 고정 너비 */
    height: 100%; /* 부모 높이 전체 차지 */
}

.header .nav-list__item .link {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* 헤더 높이 전체를 클릭 영역으로 */
    width: 100%; /* 부모 요소의 전체 너비 */
}

.header .nav-list__item .link:hover {
    color: #D4AF5F;
    text-decoration: none; /* hover 시 밑줄 제거 */
}

/* 투명 상태에서 메뉴 호버 시 스크롤 효과 */
#header.hover-scrolled .header-bg {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* 서브 메뉴까지 전체 커버 */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 스크롤 상태에서 메뉴 링크 호버 시 서브 메뉴 표시 (JavaScript로 제어) */
#header.scrolled.menu-hovered .submenu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 스크롤 상태에서 메뉴 링크 호버 시 배경 확장 (JavaScript로 제어) */
#header.scrolled.menu-hovered .header-bg {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* 서브 메뉴까지 전체 커버 */
}

#header.hover-scrolled .logo img {
    filter: none !important; /* 호버 시 원래 색상으로 복원 */
}

#header.hover-scrolled .nav-list__item .link {
    color: #333333 !important; /* 호버 시 검은색으로 변경 */
}

#header.hover-scrolled .nav-list__item .link:hover {
    color: #D4AF5F !important; /* 호버 시 골드 색상 */
}

#header.hover-scrolled .nav-mobile__btn {
    color: #333333 !important; /* 호버 시 검은색으로 변경 */
}

/* 밑줄 효과 제거 */

/* 활성 메뉴 */
.header .nav-list__item.active .link {
    color: #D4AF5F;
}

/* 활성 메뉴 밑줄 효과 제거 */

/* 서브 메뉴 스타일 */
.submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid #D9D9D9; /* 서브 메뉴 위쪽 구분선 */
}

#header.hover-scrolled .submenu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    padding-left: 220px; /* 로고 공간(200px) + 패딩(20px) 고려 */
}

.submenu-section {
    width: 150px; /* 메인 메뉴와 동일한 너비 */
    display: flex;
    justify-content: center;
}

.submenu-section:first-child {
    margin-left: 0; /* 첫 번째 섹션은 마진 없음 */
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submenu-list li {
    margin-bottom: 10px;
}

.submenu-list a {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.submenu-list a:hover {
    color: #D4AF5F;
}

/* 햄버거 메뉴 버튼 (모든 화면에서 표시) */
.nav-mobile__btn {
    position: absolute;
    right: 10px;
    display: block;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.nav-mobile__btn:hover {
    color: #D4AF5F !important;
}

/* 햄버거 버튼 활성화 상태 (X 버튼) */
.nav-mobile__btn.active {
    color: #D4AF5F !important;
}

.nav-mobile__btn.active:hover {
    color: #B8941F !important; /* 더 진한 골드 색상으로 호버 효과 */
}

/* 햄버거 아이콘을 X로 변경하는 스타일 */
.nav-mobile__btn svg {
    transition: opacity 0.15s ease;
}

/* 햄버거 아이콘 (기본 상태) */
.nav-mobile__btn svg path {
    transition: opacity 0.15s ease;
}

/* X 아이콘 (활성 상태) */
.nav-mobile__btn.active svg path {
    /* 기존 햄버거 path를 숨김 */
    opacity: 0;
}

/* X 아이콘을 ::after로 생성 */
.nav-mobile__btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.nav-mobile__btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* 활성 상태에서 X 아이콘 표시 */
.nav-mobile__btn.active::after,
.nav-mobile__btn.active::before {
    opacity: 1;
}

/* 스크롤 상태에서의 햄버거 버튼 색상 */
#header.scrolled .nav-mobile__btn {
    color: #333333 !important;
}

#header.scrolled .nav-mobile__btn:hover {
    color: #B8941F !important; /* 더 진한 골드 색상으로 호버 효과 */
}

#header.scrolled .nav-mobile__btn.active {
    color: #D4AF5F !important;
}

#header.scrolled .nav-mobile__btn.active:hover {
    color: #B8941F !important; /* 더 진한 골드 색상으로 호버 효과 */
}

/* 더 구체적인 선택자로 우선순위 높이기 */
header#header.scrolled .nav-mobile__btn:hover {
    color: #B8941F !important;
}

header#header.scrolled .nav-mobile__btn.active:hover {
    color: #B8941F !important;
}

/* hover-scrolled 상태에서의 햄버거 버튼 호버 효과 */
#header.hover-scrolled .nav-mobile__btn:hover {
    color: #B8941F !important;
}

#header.hover-scrolled .nav-mobile__btn.active:hover {
    color: #B8941F !important;
}

/* 헤더 배경 */
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px; /* 서브 메뉴까지 포함한 높이 */
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

/* 모바일 햄버거 메뉴 */
.mobile_menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile_menu.active {
    right: 0;
}

.mobile_menu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile_logo img {
    height: 26px;
}

.mobile_menu_close {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.mobile_menu_close:hover {
    color: #D4AF5F;
}

.mobile_menu_content {
    padding: 20px;
}

.mobile_menu_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile_menu_item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile_menu_item:last-child {
    border-bottom: none;
}

.mobile_menu_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: #48433C;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.15s ease;
    cursor: pointer;
}

.mobile_menu_link:hover {
    color: #D4AF5F;
}

.mobile_menu_toggle {
    background: none;
    border: none;
    color: #48433C;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
    transform: rotate(0deg);
}

.mobile_menu_toggle.active {
    transform: rotate(180deg);
    color: #D4AF5F;
}

.mobile_menu_toggle svg {
    transition: transform 0.15s ease;
}

.mobile_submenu_list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile_submenu_list.active {
    max-height: 300px;
}

.mobile_submenu_list li {
    padding: 0;
}

.mobile_submenu_list a {
    display: block;
    padding: 12px 0 12px 20px;
    color: #666;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    transition: color 0.15s ease;
}

.mobile_submenu_list a:hover {
    color: #D4AF5F;
}

/* 모바일 메뉴 오버레이 */
.mobile_menu_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile_menu_overlay.active {
    opacity: 1;
    visibility: visible;
}

.header.scrolled .header-bg {
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0% 30%); /* 스크롤 시 메인 메뉴만 커버 */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}


/* Header Menu 반응형 디자인 */

/* 1. 데스크탑 (1200px 이상) */
@media (min-width: 1200px) {
    #header {
        top: 70px;
    }
    
    .header-wrap {
        height: 80px;
        padding: 0 20px;
    }
    
    .header .logo img {
        height: 40px;
    }
    
    .header .nav-list {
        margin-left: 200px;
        height: 100%;
    }
    
    .submenu-content {
        padding: 20px 20px; /* 데스크탑과 동일한 패딩 */
        padding-left: 220px; /* 데스크탑과 동일한 패딩 */
    }
    
    .submenu-section {
        width: 150px; /* 데스크탑과 동일한 너비 */
    }
    
    .header .nav-list__item {
        width: 150px;
        height: 100%;
    }
    
    .header .nav-list__item .link {
        font-size: 16px;
        height: 100%;
        width: 100%;
    }
}

/* 2. 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    #header {
        top: 60px;
    }
    
    .header-wrap {
        height: 70px;
        padding: 0 20px;
    }
    
    .header .logo img {
        height: 35px;
    }
    
    .header .nav-list {
        margin-left: 30px;
        height: 100%;
    }
    
    .submenu-content {
        padding: 20px 20px; /* 태블릿과 동일한 패딩 */
        padding-left: 50px; /* 태블릿 로고 공간(30px) + 패딩(20px) 고려 */
    }
    
    .submenu-section {
        width: 130px; /* 태블릿과 동일한 너비 */
    }
    
    .header .nav-list__item {
        width: 130px;
        height: 100%;
    }
    
    .header .nav-list__item .link {
        font-size: 15px;
        height: 100%;
        width: 100%;
    }
}

/* 3. 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    #header {
        top: 55px;
    }
    
    .header-wrap {
        height: 60px;
        padding: 0 15px;
    }
    
    .header .logo img {
        height: 30px;
    }
    
    .header .nav {
        display: none;
    }
    
    .submenu-container {
        display: none;
    }
    
    .nav-mobile__btn {
        display: block;
    }
    
    /* 모바일 헤더 배경 높이 조정 */
    .header-bg {
        height: 150px; /* 모바일에서는 서브 메뉴 없으므로 원래 높이 */
    }
    
    .header.scrolled .header-bg {
        clip-path: polygon(0 0, 100% 0, 100% 40%, 0% 40%); /* 모바일 스크롤 시 메인 메뉴만 커버 */
    }
    
    /* 모바일 스크롤 상태에서 메뉴 호버 시 배경 확장 (JavaScript로 제어) */
    #header.scrolled.menu-hovered .header-bg {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* 모바일 스크롤 상태에서 호버 시 서브 메뉴까지 커버 */
    }
}

/* 4. 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    #header {
        top: 55px;
    }
    
    .header-wrap {
        height: 60px;
        padding: 0 15px;
    }
    
    .header .logo img {
        height: 28px;
    }
    
    .header .nav {
        display: none;
    }
    
    .submenu-container {
        display: none;
    }
    
    .nav-mobile__btn {
        display: block;
    }
    
    /* 작은 모바일 헤더 배경 높이 조정 */
    .header-bg {
        height: 120px; /* 작은 모바일에서는 서브 메뉴 없으므로 원래 높이 */
    }
    
    .header.scrolled .header-bg {
        clip-path: polygon(0 0, 100% 0, 100% 48%, 0% 48%); /* 작은 모바일 스크롤 시 메인 메뉴만 커버 */
    }
    
    /* 작은 모바일 스크롤 상태에서 메뉴 호버 시 배경 확장 (JavaScript로 제어) */
    #header.scrolled.menu-hovered .header-bg {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* 작은 모바일 스크롤 상태에서 호버 시 서브 메뉴까지 커버 */
    }
}

/* ===== 로그인 메시지 ===== */
#hd_login_msg {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#hd_login_msg:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#hd_login_msg a {
    color: #D4AF60;
    text-decoration: none;
    margin-left: 8px;
    font-weight: 600;
    transition: color 0.3s ease;
}

#hd_login_msg a:hover {
    color: #F4D03F;
    text-decoration: underline;
}

/* 반응형 로그인 메시지 */
@media (max-width: 767px) and (min-width: 480px) {
    #hd_login_msg {
        top: 15px;
        right: 15px;
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 479px) {
    #hd_login_msg {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 5px 10px;
        border-radius: 15px;
    }
}

/* ========================================
   Marriage Modal
======================================== */

/* ===== 결혼 성향 진단 모달창 ===== */
.marriage_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.marriage_modal.active {
    display: flex;
}

.marriage_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.marriage_modal_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.marriage_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E5E5;
    gap: 20px;
}

.marriage_modal_header .marriage_modal_title {
    flex: 1;
    text-align: left;
}

.marriage_modal_header .marriage_modal_close {
    flex-shrink: 0;
}

.marriage_modal_title {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    font-weight: 700;
    color: #48433C;
    margin: 0;
}

.marriage_modal_close {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.marriage_modal_close:hover {
    color: #48433C;
    background: rgba(0, 0, 0, 0.05);
}

.marriage_modal_content {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.marriage_option_list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.marriage_option_item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #E5E5E5;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.marriage_option_item:hover {
    border-color: #D4AF5F;
    background: rgba(212, 175, 96, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 96, 0.2);
}

.marriage_option_icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marriage_option_icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.marriage_option_text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #48433C;
}

/* ===== 설문 모달창 ===== */
.survey_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
}

.survey_modal.active {
    display: flex;
}

.survey_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.survey_modal_wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.survey_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E5E5;
    gap: 20px;
}

.survey_modal_header .survey_modal_title {
    flex: 1;
    text-align: left;
}

.survey_modal_header .survey_progress {
    flex-shrink: 0;
}

.survey_modal_header .survey_modal_close {
    flex-shrink: 0;
}

.survey_modal_title {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    font-weight: 700;
    color: #48433C;
    margin: 0;
}

.survey_progress {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #999999;
    background: #F5F5F5;
    padding: 4px 12px;
    border-radius: 20px;
}

.survey_modal_close {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.survey_modal_close:hover {
    color: #48433C;
    background: rgba(0, 0, 0, 0.05);
}

.survey_modal_content {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.survey_step {
    display: none;
}

.survey_step.active {
    display: block;
}

.survey_question {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #48433C;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.survey_btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #48433C;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.survey_btn:hover {
    background: #D4AF5F;
    color: #FFFFFF;
    border-color: #D4AF5F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 96, 0.3);
}

.survey_btn:active {
    transform: translateY(0);
}

.survey_select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #FFFCF7;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    color: #48433C;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348433C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.survey_select:focus {
    outline: none;
    border-color: #D4AF60;
    box-shadow: 0 0 0 3px rgba(212, 175, 96, 0.1);
}

.survey_result {
    text-align: center;
}

.survey_result_text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #48433C;
    line-height: 1.6;
    margin-bottom: 30px;
}

.survey_result_text span {
    font-weight: 700;
    color: #48433C;
}

.survey_form_section {
    text-align: left;
}

/* 폼 그룹 */
.survey_form_group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.survey_form_group:last-child {
    margin-bottom: 0;
}

/* 라벨 (체크박스 라벨 제외) */
.survey_form_group > label:not(.survey_checkbox_label) {
    display: block;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #48433C;
    margin-bottom: 0;
    line-height: 1.4;
    flex: 0 0 120px;
    text-align: left;
}

/* 입력 필드 */
.survey_form_group input[type="text"],
.survey_form_group input[type="tel"],
.survey_form_group input[type="email"],
.survey_form_group input[type="number"],
.survey_form_group select {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    color: #48433C;
    background-color: #FFFCF7;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 체크박스는 별도 스타일링 */
.survey_form_group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    background-color: #FFFFFF;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.survey_form_group input[type="checkbox"]:checked {
    background-color: #51453A;
    border-color: #51453A;
}

.survey_form_group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

.survey_form_group input:focus,
.survey_form_group select:focus {
    outline: none;
    border-color: #D4AF60;
    box-shadow: 0 0 0 3px rgba(212, 175, 96, 0.1);
}

.survey_form_group input::placeholder {
    color: #999999;
    font-size: 14px;
}

/* 셀렉트 박스 스타일 */
.survey_form_group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348433C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}

/* 라디오 버튼 그룹 */
.survey_radio_group {
    display: flex;
    gap: 12px;
    flex: 1;
}

.survey_radio_label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.survey_radio_input {
    display: none;
}

.survey_radio_text {
    padding: 8px 20px;
    border: 1px solid #DDDDDD;
    border-radius: 40px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #48433C;
    background-color: #FFFCF7;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.survey_radio_input:checked + .survey_radio_text {
    background-color: #51453A;
    color: #FFFFFF;
    border-color: #51453A;
}

.survey_checkbox_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.survey_checkbox_input {
    width: 18px;
    height: 18px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    background-color: #FFFFFF;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.survey_checkbox_input:checked {
    background-color: #51453A;
    border-color: #51453A;
}

.survey_checkbox_input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

.survey_checkbox_text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.4;
}

/* 모두 동의 아래 구분선 */
.survey_checkbox_label:first-child {
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.survey_checkbox_label:first-child::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #D9D9D9;
}

/* 개인정보 동의 체크박스 위 마진 */
.survey_checkbox_label:nth-child(2) {
    margin-top: 10px;
    margin-bottom: 12px;
}

/* 광고성 정보수신 동의 체크박스 */
.survey_checkbox_label:nth-child(3) {
    margin-bottom: 0;
}

/* 체크박스 그룹 */
.survey_agreement_group {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.survey_agreement_line {
    width: 100%;
    height: 1px;
    background: #D9D9D9;
    margin: 10px 0;
}

.survey_link {
    color: #48433C;
    text-decoration: underline;
}

.survey_link:hover {
    color: #D4AF5F;
}

/* 제출 버튼 */
.survey_submit_btn {
    width: 100%;
    padding: 16px 24px;
    background-color: #393029;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.survey_submit_btn:hover {
    background-color: #2A2119;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(57, 48, 41, 0.3);
}

.survey_submit_btn:active {
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 767px) {
    /* 모바일에서는 세로 레이아웃 */
    .survey_form_group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .survey_form_group > label:not(.survey_checkbox_label) {
        flex: none;
        width: 100%;
        margin-bottom: 8px;
        font-size: 15px;
    }
    
    .survey_form_group input,
    .survey_form_group select {
        width: 100%;
    }
    
    .survey_radio_group {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }
    
    .survey_agreement_group {
        width: 100%;
    }
    
    .marriage_modal_content,
    .survey_modal_content {
        padding: 20px;
        margin: 10px;
    }
    
    .marriage_modal_title,
    .survey_modal_title {
        font-size: 20px;
    }
    
    .marriage_modal_header,
    .survey_modal_header {
        gap: 15px;
    }
    
    .survey_modal_header .survey_progress {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .marriage_option_item {
        padding: 15px;
        gap: 15px;
    }
    
    .marriage_option_icon {
        width: 50px;
        height: 50px;
    }
    
    .marriage_option_icon img {
        width: 50px;
        height: 50px;
    }
    
    .marriage_option_text {
        font-size: 16px;
    }
    
    .survey_question {
        font-size: 18px;
        margin-bottom: 25px;
    }
    
    .survey_btn {
        padding: 12px 16px;
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .survey_result_text {
        font-size: 16px;
    }
    
    .survey_radio_group {
        flex-direction: row;
        gap: 8px;
    }
    
    .survey_radio_text {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .survey_form_group input,
    .survey_form_group select {
        font-size: 14px;
        /* padding: 10px 14px; */
    }
    
    .survey_form_group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        border: 1px solid #DDDDDD;
        border-radius: 4px;
        background-color: #FFFFFF;
        cursor: pointer;
        position: relative;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        transition: all 0.3s ease;
    }
    
    .survey_form_group input[type="checkbox"]:checked {
        background-color: #51453A;
        border-color: #51453A;
    }
    
    .survey_form_group input[type="checkbox"]:checked::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #FFFFFF;
        font-size: 12px;
        font-weight: bold;
    }
    
    .survey_select {
        font-size: 14px;
        padding: 10px 14px;
        padding-right: 40px;
    }
    
    .survey_agreement_group {
        width: 100%;
    }
    
    .survey_checkbox_text {
        font-size: 13px;
    }
    
    .survey_submit_btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

@media (max-width: 479px) {
    /* 작은 모바일에서도 세로 레이아웃 */
    .survey_form_group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .survey_form_group > label:not(.survey_checkbox_label) {
        flex: none;
        width: 100%;
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .survey_form_group input,
    .survey_form_group select {
        width: 100%;
    }
    
    .survey_radio_group {
        width: 100%;
    }
    
    .survey_agreement_group {
        width: 100%;
    }
    
    .marriage_modal_wrapper,
    .survey_modal_wrapper {
        padding: 10px;
    }
    
    .marriage_modal_content,
    .survey_modal_content {
        padding: 15px;
        margin: 5px;
    }
    
    .marriage_modal_title,
    .survey_modal_title {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .marriage_modal_header,
    .survey_modal_header {
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .marriage_modal_header .marriage_modal_title,
    .survey_modal_header .survey_modal_title {
        font-size: 16px;
        flex: 1;
        order: 1;
        min-width: 0;
    }
    
    .survey_modal_header .survey_progress {
        font-size: 11px;
        padding: 2px 6px;
        order: 2;
    }
    
    .marriage_modal_header .marriage_modal_close,
    .survey_modal_header .survey_modal_close {
        order: 3;
    }
    
    .marriage_option_item {
        padding: 12px;
        gap: 12px;
    }
    
    .marriage_option_icon {
        width: 45px;
        height: 45px;
    }
    
    .marriage_option_icon img {
        width: 45px;
        height: 45px;
    }
    
    .marriage_option_text {
        font-size: 14px;
    }
    
    .survey_question {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .survey_btn {
        padding: 10px 14px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .survey_result_text {
        font-size: 14px;
    }
    
    .survey_radio_group {
        flex-direction: row;
        gap: 4px;
    }
    
    .survey_radio_text {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .survey_form_group input,
    .survey_form_group select {
        font-size: 13px;
        /* padding: 10px 12px; */
    }
    
    .survey_form_group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        border: 1px solid #DDDDDD;
        border-radius: 4px;
        background-color: #FFFFFF;
        cursor: pointer;
        position: relative;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        transition: all 0.3s ease;
    }
    
    .survey_form_group input[type="checkbox"]:checked {
        background-color: #51453A;
        border-color: #51453A;
    }
    
    .survey_form_group input[type="checkbox"]:checked::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #FFFFFF;
        font-size: 12px;
        font-weight: bold;
    }
    
    .survey_select {
        font-size: 13px;
        padding: 10px 12px;
        padding-right: 40px;
    }
    
    .survey_agreement_group {
        width: 100%;
    }
    
    .survey_checkbox_text {
        font-size: 11px;
    }
    
    .survey_submit_btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* ===== 진단별 인증번호 모달 CSS ===== */

/* 이상형 진단 인증번호 모달 */
.ideal_verification_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
}

.ideal_verification_modal.active {
    display: flex;
}

.ideal_verification_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.ideal_verification_modal_wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: idealModalSlideIn 0.3s ease-out;
}

@keyframes idealModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ideal_verification_modal_content {
    padding: 0;
}

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

.ideal_verification_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.ideal_verification_modal_close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.ideal_verification_modal_close:hover {
    color: #333;
}

.ideal_verification_modal_body {
    padding: 24px;
}

.ideal_verification_info {
    margin-bottom: 20px;
    text-align: center;
}

.ideal_verification_info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.ideal_verification_info .ideal_verification_name {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.ideal_verification_info .ideal_verification_phone {
    font-size: 15px;
    color: #555;
}

.ideal_verification_input_group {
    margin-bottom: 24px;
}

#ideal_verification_code_input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#ideal_verification_code_input:focus {
    outline: none;
    border-color: #D4AF60;
}

.ideal_verification_timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.ideal_timer_display {
    font-weight: 600;
    color: #e74c3c;
}

.ideal_verification_buttons {
    display: flex;
    gap: 12px;
}

.ideal_resend_btn {
    flex: 1;
    height: 44px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.ideal_resend_btn:hover {
    border-color: #D4AF60;
    color: #D4AF60;
}

.ideal_resend_btn:disabled,
.ideal_resend_btn.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.ideal_resend_btn:disabled:hover,
.ideal_resend_btn.disabled:hover {
    border-color: #ddd;
    color: #999;
}

.ideal_complete_btn {
    flex: 1;
    height: 44px;
    background: #393029;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.ideal_complete_btn:hover {
    background: #2A2119;
}

.ideal_complete_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 결혼 심리 진단 인증번호 모달 */
.psychology_verification_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
}

.psychology_verification_modal.active {
    display: flex;
}

.psychology_verification_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.psychology_verification_modal_wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: psychologyModalSlideIn 0.3s ease-out;
}

@keyframes psychologyModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.psychology_verification_modal_content {
    padding: 0;
}

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

.psychology_verification_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.psychology_verification_modal_close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.psychology_verification_modal_close:hover {
    color: #333;
}

.psychology_verification_modal_body {
    padding: 24px;
}

.psychology_verification_info {
    margin-bottom: 20px;
    text-align: center;
}

.psychology_verification_info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.psychology_verification_info .psychology_verification_name {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.psychology_verification_info .psychology_verification_phone {
    font-size: 15px;
    color: #555;
}

.psychology_verification_input_group {
    margin-bottom: 24px;
}

#psychology_verification_code_input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#psychology_verification_code_input:focus {
    outline: none;
    border-color: #D4AF60;
}

.psychology_verification_timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.psychology_timer_display {
    font-weight: 600;
    color: #e74c3c;
}

.psychology_verification_buttons {
    display: flex;
    gap: 12px;
}

.psychology_resend_btn {
    flex: 1;
    height: 44px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.psychology_resend_btn:hover {
    border-color: #D4AF60;
    color: #D4AF60;
}

.psychology_resend_btn:disabled,
.psychology_resend_btn.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.psychology_resend_btn:disabled:hover,
.psychology_resend_btn.disabled:hover {
    border-color: #ddd;
    color: #999;
}

.psychology_complete_btn {
    flex: 1;
    height: 44px;
    background: #393029;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.psychology_complete_btn:hover {
    background: #2A2119;
}

.psychology_complete_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 노블레스 진단 인증번호 모달 */
.noblesse_verification_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
}

.noblesse_verification_modal.active {
    display: flex;
}

.noblesse_verification_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.noblesse_verification_modal_wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: noblesseModalSlideIn 0.3s ease-out;
}

@keyframes noblesseModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.noblesse_verification_modal_content {
    padding: 0;
}

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

.noblesse_verification_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.noblesse_verification_modal_close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.noblesse_verification_modal_close:hover {
    color: #333;
}

.noblesse_verification_modal_body {
    padding: 24px;
}

.noblesse_verification_info {
    margin-bottom: 20px;
    text-align: center;
}

.noblesse_verification_info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.noblesse_verification_info .noblesse_verification_name {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.noblesse_verification_info .noblesse_verification_phone {
    font-size: 15px;
    color: #555;
}

.noblesse_verification_input_group {
    margin-bottom: 24px;
}

#noblesse_verification_code_input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#noblesse_verification_code_input:focus {
    outline: none;
    border-color: #D4AF60;
}

.noblesse_verification_timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.noblesse_timer_display {
    font-weight: 600;
    color: #e74c3c;
}

.noblesse_verification_buttons {
    display: flex;
    gap: 12px;
}

.noblesse_resend_btn {
    flex: 1;
    height: 44px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.noblesse_resend_btn:hover {
    border-color: #D4AF60;
    color: #D4AF60;
}

.noblesse_resend_btn:disabled,
.noblesse_resend_btn.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.noblesse_resend_btn:disabled:hover,
.noblesse_resend_btn.disabled:hover {
    border-color: #ddd;
    color: #999;
}

.noblesse_complete_btn {
    flex: 1;
    height: 44px;
    background: #393029;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.noblesse_complete_btn:hover {
    background: #2A2119;
}

.noblesse_complete_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 매니저 진단 인증번호 모달 */
.manager_verification_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
}

.manager_verification_modal.active {
    display: flex;
}

.manager_verification_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.manager_verification_modal_wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: managerModalSlideIn 0.3s ease-out;
}

@keyframes managerModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.manager_verification_modal_content {
    padding: 0;
}

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

.manager_verification_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.manager_verification_modal_close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.manager_verification_modal_close:hover {
    color: #333;
}

.manager_verification_modal_body {
    padding: 24px;
}

.manager_verification_info {
    margin-bottom: 20px;
    text-align: center;
}

.manager_verification_info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.manager_verification_info .manager_verification_name {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.manager_verification_info .manager_verification_phone {
    font-size: 15px;
    color: #555;
}

.manager_verification_input_group {
    margin-bottom: 24px;
}

#manager_verification_code_input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#manager_verification_code_input:focus {
    outline: none;
    border-color: #D4AF60;
}

.manager_verification_timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.manager_timer_display {
    font-weight: 600;
    color: #e74c3c;
}

.manager_verification_buttons {
    display: flex;
    gap: 12px;
}

.manager_resend_btn {
    flex: 1;
    height: 44px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.manager_resend_btn:hover {
    border-color: #D4AF60;
    color: #D4AF60;
}

.manager_resend_btn:disabled,
.manager_resend_btn.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.manager_resend_btn:disabled:hover,
.manager_resend_btn.disabled:hover {
    border-color: #ddd;
    color: #999;
}

.manager_complete_btn {
    flex: 1;
    height: 44px;
    background: #393029;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.manager_complete_btn:hover {
    background: #2A2119;
}

.manager_complete_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 프로필 추천 신청 인증번호 모달 */
.profile_verification_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
}

.profile_verification_modal.active {
    display: flex;
}

.profile_verification_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.profile_verification_modal_wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: profileModalSlideIn 0.3s ease-out;
}

@keyframes profileModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile_verification_modal_content {
    padding: 0;
}

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

.profile_verification_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

.profile_verification_modal_close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.profile_verification_modal_close:hover {
    color: #333;
}

.profile_verification_modal_body {
    padding: 24px;
}

.profile_verification_info {
    margin-bottom: 20px;
    text-align: center;
}

.profile_verification_info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.profile_verification_info .profile_verification_name {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.profile_verification_info .profile_verification_phone {
    font-size: 15px;
    color: #555;
}

.profile_verification_input_group {
    margin-bottom: 24px;
}

#profile_verification_code_input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#profile_verification_code_input:focus {
    outline: none;
    border-color: #D4AF60;
}

.profile_verification_timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
}

.profile_timer_display {
    font-weight: 600;
    color: #e74c3c;
}

.profile_verification_buttons {
    display: flex;
    gap: 12px;
}

.profile_resend_btn {
    flex: 1;
    height: 44px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.profile_resend_btn:hover {
    border-color: #D4AF60;
    color: #D4AF60;
}

.profile_resend_btn:disabled,
.profile_resend_btn.disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.profile_resend_btn:disabled:hover,
.profile_resend_btn.disabled:hover {
    border-color: #ddd;
    color: #999;
}

.profile_complete_btn {
    flex: 1;
    height: 44px;
    background: #393029;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.profile_complete_btn:hover {
    background: #2A2119;
}

.profile_complete_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 모바일 반응형 */
@media (max-width: 767px) {
    .ideal_verification_modal_wrapper,
    .psychology_verification_modal_wrapper,
    .noblesse_verification_modal_wrapper,
    .manager_verification_modal_wrapper,
    .profile_verification_modal_wrapper {
        width: 95%;
        margin: 20px;
    }
    
    .ideal_verification_modal_header,
    .psychology_verification_modal_header,
    .noblesse_verification_modal_header,
    .manager_verification_modal_header,
    .profile_verification_modal_header {
        padding: 16px 20px;
    }
    
    .ideal_verification_modal_body,
    .psychology_verification_modal_body,
    .noblesse_verification_modal_body,
    .manager_verification_modal_body,
    .profile_verification_modal_body {
        padding: 20px;
    }
    
    .ideal_verification_buttons,
    .psychology_verification_buttons,
    .noblesse_verification_buttons,
    .manager_verification_buttons,
    .profile_verification_buttons {
        flex-direction: column;
    }
    
    .ideal_resend_btn,
    .ideal_complete_btn,
    .psychology_resend_btn,
    .psychology_complete_btn,
    .noblesse_resend_btn,
    .noblesse_complete_btn,
    .manager_resend_btn,
    .manager_complete_btn,
    .profile_resend_btn,
    .profile_complete_btn {
        width: 100% !important;
        height: 50px !important; /* 모바일에서 더 큰 터치 영역 */
        font-size: 16px !important; /* 모바일에서 더 큰 폰트 */
        min-height: 50px !important; /* 최소 높이 보장 */
    }
}
