/* 기본 스타일 초기화 & 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sticky Footer를 위한 기본 설정 */
html, body {
    height: 100%;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sticky Footer의 핵심 설정 */
.wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 레이아웃 컨테이너 */
.container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 헤더 */
header {
    width: 100%;
    padding: 20px 0;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: padding 0.3s ease; /* 높이 변경 시 부드러운 효과 */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 900;
    color: #27ae60;
    transition: font-size 0.3s ease; /* 폰트 크기 변경 시 부드러운 효과 */
}

/* 헤더 아이콘 버튼 스타일 */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px; /* 버튼 사이 간격 */
}

.header-icon-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;  /* 정사각형 크기 */
    height: 40px; /* 정사각형 크기 */
    border-radius: 5px;
    color: #fff;
    font-size: 1.1rem; /* 아이콘 크기 */
    transition: all 0.3s ease; /* 크기 변경 시 부드러운 효과 */
}

.header-icon-button:hover {
    opacity: 0.85;
}

/* 펜 아이콘 버튼 (주황색) */
.header-icon-button.pen {
    background-color: #FF7F50;
}

/* 전화 아이콘 버튼 (녹색) */
.header-icon-button.phone {
    background-color: #27ae60;
}


/* 이미지 (Lazy Load 포함) */
.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f0f0f0;
    min-height: 250px;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.full-width-image.lazy {
    opacity: 0;
    transform: translateY(20px);
}

.full-width-image:not(.lazy) {
    opacity: 1;
    transform: translateY(0);
}

/* 푸터 */
footer {
    width: 100%;
    background-color: #f8f9fa;
    color: #868e96;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 60px;
}

/* 하단 고정 버튼 */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    background-color: #2c3e50;
}

.fixed-cta .container {
    display: flex;
    height: 100%;
    gap: 10px;
}

.fixed-cta .cta-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    text-align: center;
    word-break: keep-all;
}

.fixed-cta .cta-button i {
    font-size: 1em;
    margin-right: 8px;
}

.fixed-cta .cta-button.left {
    background-color: #FF7F50;
}

.fixed-cta .cta-button.right {
    background-color: #27ae60;
}

/* 모달창 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group .required {
    color: #FF7F50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
}

.phone-group, .region-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-group span {
    color: #ddd;
}

.phone-group input {
    text-align: center;
}

select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.submit-button {
    width: 100%;
    background-color: #FF7F50;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #E56A40;
}

/* 반응형 */
@media (max-width: 939px) {
    main.container,
    footer .container,
    .fixed-cta .container {
        padding-left: 0;
        padding-right: 0;
    }
    .fixed-cta .container {
        gap: 0;
    }
    .fixed-cta .cta-button {
        border-radius: 0;
        font-size: 1rem;
    }
}

/* ▼▼▼▼▼ 767px 이하 화면에서 헤더 사이즈 조정 ▼▼▼▼▼ */
@media (max-width: 767px) {
    header {
        padding: 10px 0; /* 헤더의 상하 여백을 줄여 높이 감소 */
    }
    .logo a {
        font-size: 1.2rem; /* 로고 폰트 크기 감소 */
    }
    .header-icon-button {
        width: 36px;  /* 아이콘 버튼 너비 감소 */
        height: 36px; /* 아이콘 버튼 높이 감소 */
        font-size: 1rem; /* 아이콘 크기 감소 */
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
    }
    .modal-content h2 {
        font-size: 1.5rem;
    }
    .fixed-cta .cta-button {
        font-size: 0.9rem;
    }
    .fixed-cta .cta-button i {
        margin-right: 5px;
    }
}

