section {padding: 80px 0;}

header {padding: 20px 0; border-bottom: 1px solid #ddd;}
header .inner {display: flex; align-items: center; justify-content: space-between;}
header .inner h1 a img {width: 80px;}
header .inner ul {display: flex; align-items: center; gap: 10px;}
header .inner ul li {}
header .inner ul li a {display: flex; background: #382F40; padding: 5px 15px; color: #fff; border-radius: 5px; font-weight: 600;}

#section1 {}
#section1 .inner {}
#section1 .inner .title_wrap {text-align: center;}
#section1 .inner .title_wrap h2 {font-size: 35px; font-weight: 700; margin-bottom: 10px;}
#section1 .inner .title_wrap p {font-size: 20px; font-weight: 600;}
#section1 .inner .title_wrap button {background: #ddd; padding: 15px 20px; border-radius: 10px; font-weight: 700; font-size: 25px; margin-top: 40px;}

#section2 {padding-top: 0;}
#section2 .inner {}
#section2 .inner .sc2_main_img {margin: 0 auto; text-align: center; object-fit: contain; margin-bottom: 30px;}
#section2 .inner h2 {font-size: 40px; font-weight: 700; margin-bottom: 10px; text-align: center;}
#section2 .inner .title_sub {font-size: 25px; font-weight: 600; text-align: center; margin-bottom: 80px;}
#section2 .inner .benefit-list {display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px;}
#section2 .inner .benefit-list li {display: flex; flex-direction: column; box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; padding: 30px; border-radius: 10px;}
#section2 .inner .benefit-list li img {width: 50px; height: 50px; margin-bottom: 20px;}
#section2 .inner .benefit-list li p {font-size: 20px; font-weight: 700; margin-bottom: 10px;}
#section2 .inner .feature-list {border: 1px solid #ddd; border-radius: 10px; padding: 30px; display: grid; grid-template-columns: repeat(3, 1fr);}
#section2 .inner .feature-list li {display: flex; flex-direction: column; align-items: center;}
#section2 .inner .feature-list h3 {font-size: 40px; font-weight: 700; margin-bottom: 10px;}
#section2 .inner .feature-list p {color: #777; font-size: 18px; font-weight: 500;}

#section3 {padding-top: 0;}
#section3 .inner {border: 1px solid #ddd; padding: 50px 120px; border-radius: 10px;}
#section3 .inner .title_wrap {text-align: center; margin-bottom: 20px;}
#section3 .inner .title_wrap img {text-align: center; margin: 0 auto; width: 150px; margin-bottom: 20px;}
#section3 .inner .title_wrap h2 {font-size: 35px; font-weight: 700; margin-bottom: 10px;}
#section3 .inner .title_wrap p {font-size: 20px; font-weight: 500; color: #777;}
#section3 .inner ul {display: grid; grid-template-columns: repeat(1, 1fr); gap: 15px; margin-bottom: 20px;}
#section3 .inner ul li.money_list {display: flex; align-items: center; gap: 10px;}
#section3 .inner ul li.money_list div {flex: 1;}
#section3 .inner ul li label {font-size: 18px; font-weight: 700; margin-bottom: 5px; display: block;}
#section3 .inner ul li input {border: 1px solid #ddd; width: 100%; border-radius: 5px; padding: 15px 15px; display: inline-block;}
#section3 .inner ul li.money_list {display: flex; align-items: flex-start; gap: 10px;}
#section3 .inner ul li.money_list .input-group { flex: 1; }
#section3 .inner ul li.money_list .input-group label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 18px;}
#section3 .inner ul li.money_list .input-group .input-with-unit { position: relative; display: block; width: 100%;}
#section3 .inner ul li.money_list .input-group .input-with-unit input { width: 100%; padding-right: 45px !important; border: 1px solid #ddd; border-radius: 5px; padding: 15px 15px; }
#section3 .inner ul li.money_list .input-group .input-with-unit .unit {position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #666; font-weight: 600; font-size: 18px; pointer-events: none;}
#section3 .inner button {background: #000; color: #fff; text-align: center; width: 100%; border-radius: 10px; padding: 20px 0; font-size: 18px; font-weight: 600;}

/* 부동산 유형 선택 */
.property_type_section {
    display: block !important;
}

.property_type_section > label:first-child {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.property_type_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.property_type_label {
    position: relative;
    cursor: pointer;
    display: block;
}

.property_type_label input[type="radio"] {
    display: none !important;
}

.property_type_label span {
    display: block;
    padding: 15px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.property_type_label:hover span {
    border-color: #333;
    background-color: #f5f5f5;
}

.property_type_label input[type="radio"]:checked + span {
    border-color: #000;
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .property_type_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .property_type_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .property_type_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .property_type_grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 건물 목록 조회 버튼 */
#btn_building_lookup {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 20px;
}

#btn_building_lookup:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

#btn_building_lookup.loading {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* 커스텀 드롭다운 */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    padding: 0;
    position: relative;
    height: 45px;
}

.dropdown-header .dropdown-placeholder {
    padding: 0 15px;
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-header:hover {
    border-color: #999;
    background: #fafafa;
}

.dropdown-header.active {
    border-color: #000;
    background: #fff;
}

.dropdown-placeholder {
    color: #999;
}

.dropdown-header.active .dropdown-placeholder {
    color: #333;
}

.dropdown-arrow {
    color: #666;
    flex-shrink: 0;
    margin-right: 15px;
    width: 15px !important;
    height: 15px !important;
    transform-origin: center;
}

.dropdown-header.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #000;
}

.dropdown-item.selected {
    background: #000;
    color: #fff;
    font-weight: 600;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 제출 버튼 비활성 상태 */
#btn_submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 로딩 스피너 */
.loading-spinner-hidden {
    display: none !important;
}

.loading-spinner-visible {
    display: flex !important;
}

#loading_spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998 !important;
}

.spinner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 50px 60px;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-container p {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 건물명 검색 input */
.building-search-input {
    flex: 1;
    border: none !important;
    padding: 0 15px;
    font-size: 14px;
    line-height: 45px;
    color: #333;
    background: transparent;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    height: 100%;
}

.building-search-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.building-search-input::placeholder {
    color: #999;
}