/* ========================================
   Contact Us (Estimate Page Custom Styles)
   ======================================== */

/* Hero Banner */
.contact_main_section {
    position: relative;
    width: 100%;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.contact_main_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.contact_main_container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.contact_main_content {
    text-align: center;
    color: #FFFFFF;
}

.contact_main_en {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.contact_main_ko {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 52px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Form Container Section */
.contact_form_section {
    width: 100%;
    padding: 100px 0 120px 0;
    background: #FAFAFC; /* 미려하고 부드러운 화이트그레이 배경 */
    display: flex;
    justify-content: center;
}

.contact_form_container {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

/* Mockup White Card Wrapper (Desktop: 1000px width with 100px side padding) */
.estimate_card {
    background: #FFFFFF;
    border-radius: 35px;
    padding: 60px 100px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #ECECF2;
    box-sizing: border-box;
}

/* Logo and Title */
.estimate_logo {
    text-align: center;
    margin-bottom: 45px;
}

.estimate_logo_img {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.estimate_card_title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin: 18px 0 0 0;
    letter-spacing: -0.03em;
    text-align: center;
}

/* Form Fields - Stacked vertically matching mockup */
.form_field {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.field_label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    text-align: left;
}

.form_input_text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    color: #222222;
    background: #FFFFFF;
    border: 1px solid #D2D2D8;
    border-radius: 8px;
    padding: 16px 18px;
    outline: none;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.form_input_text::placeholder {
    color: #A0A0B0;
}

.form_input_text:focus {
    border-color: #2B308B;
    box-shadow: 0 0 0 3px rgba(43, 48, 139, 0.05);
}

/* Agreement Custom Area - Stretches full width, aligned with inputs */
.agree_group {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.agree_row {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* 좌측 정렬: [보기] 버튼이 텍스트 바로 우측에 붙도록 구현 */
.agree_row_sub {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}

.agree_checkbox {
    display: none !important;
}

/* Custom Square Checkbox - 체크 안 되었을 때 테두리를 연한 회색(#D2D2D8)으로 변경 */
.checkbox_custom {
    width: 18px;
    height: 18px;
    border: 2px solid #D2D2D8; /* 시안처럼 체크 해제 시 연한 회색 테두리 */
    border-radius: 0; /* Square as mockup */
    display: inline-block;
    position: relative;
    margin-right: 12px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #FFFFFF;
    flex-shrink: 0;
}

/* 체크 되었을 때만 파란색 배경 및 테두리로 채움 */
.agree_checkbox:checked + .checkbox_custom {
    background: #2B308B;
    border-color: #2B308B;
}

.agree_checkbox:checked + .checkbox_custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 약관 폰트 색상을 시안과 부합하도록 연한 회색(#888899)으로 설정 */
.agree_text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #888899;
    white-space: nowrap;
}

/* 모두동의(상위 타이틀)의 폰트 색상도 동일한 연한 회색(#888899)으로 통일 */
.main_agree .agree_text {
    color: #888899;
    font-weight: 700;
}

.agree_divider {
    border-top: 1px solid #D2D2D8;
    margin: 4px 0;
}

/* [보기] Text Button Link - 폰트 색상 연하게(#A0A0B0) 조율 */
.view_btn {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #A0A0B0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-left: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.view_btn:hover {
    color: #2B308B;
}

/* Submit Button - 좌우가 완전히 둥근 타원형(원형/알약)으로 개정 */
.form_btn_wrap {
    margin-top: 35px;
    width: 100%;
}

.submit_btn {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    background: #2B308B;
    border: none;
    border-radius: 35px; /* 완전히 둥근 원형 타원 디자인(Pill-shaped) */
    padding: 17px 0;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(43, 48, 139, 0.15);
    transition: all 0.25s ease;
    text-align: center;
}

.submit_btn:hover {
    background: #1D2173;
    box-shadow: 0 6px 18px rgba(43, 48, 139, 0.25);
}

.submit_btn:disabled {
    background: #A0A0B0;
    box-shadow: none;
    cursor: not-allowed;
}

/* ========================================
   Custom Modals (개인정보 & 광고성정보)
   ======================================== */
.agreement_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.agreement_modal_box {
    background: #FFFFFF;
    width: 90%;
    max-width: 580px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.agreement_modal_overlay.active .agreement_modal_box {
    transform: scale(1);
}

.modal_close_x {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 26px;
    color: #888899;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
}

.modal_close_x:hover {
    color: #222222;
}

.agreement_modal_title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 6px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.agreement_modal_subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: #888899;
    text-align: center;
    margin: 0 0 25px 0;
}

.agreement_modal_divider {
    border-top: 2px solid #2B308B; /* Dark blue divider in mockup */
    margin-bottom: 25px;
}

.agreement_content_body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #444455;
    line-height: 1.8;
    text-align: left;
}

.agreement_content_body p {
    margin: 0 0 12px 0;
    font-weight: 500;
}

.agreement_content_body strong {
    color: #222222;
    font-weight: 700;
}

.agreement_note_box {
    background: #F8F9FD;
    border-left: 3.5px solid #2B308B; /* Left border in mockup */
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #444455;
    line-height: 1.6;
    margin-top: 25px;
    word-break: keep-all;
}

/* S : 견적문의 성공 레이어 팝업 모달 */
.estimate_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.estimate_modal_box {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.85);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

.estimate_modal_overlay.active .estimate_modal_box {
    transform: scale(1);
}

.modal_success_icon {
    width: 64px;
    height: 64px;
    background: rgba(43, 48, 139, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.modal_success_icon svg {
    color: #2B308B;
    width: 32px;
    height: 32px;
}

.modal_title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 12px 0;
}

.modal_desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #666677;
    line-height: 1.6;
    margin: 0 0 30px 0;
    word-break: keep-all;
}

.modal_close_btn {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    background: #2B308B;
    border: none;
    border-radius: 10px;
    padding: 12px 0;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal_close_btn:hover {
    background: #1D2173;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 991px) {
    .estimate_card {
        padding: 50px 60px;
    }
}

@media (max-width: 767px) {
    .contact_main_section {
        min-height: 400px;
    }
    .contact_main_ko {
        font-size: 36px;
    }
    .contact_form_section {
        padding: 60px 0 80px 0;
    }
    .estimate_card {
        padding: 40px 25px;
        border-radius: 25px;
    }
    .agreement_modal_box {
        padding: 30px 20px;
    }
}

@media (max-width: 479px) {
    .contact_main_section {
        min-height: 360px;
    }
    .contact_main_ko {
        font-size: 32px;
    }
}
