/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #111;
    background-color: #F5F6F8; /* 전체 배경색 */
    line-height: 1.5;
    font-size: 16px;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input {
    font-family: inherit;
    appearance: none;
    border-radius: 0;
}

/* Layout */
.wrap {
    max-width: 500px; /* 모바일 시안 기준 최대 폭 */
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 80px; /* 하단 버튼 공간 */
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header */
.header img {
    width: 100%;
    display: block;
}

/* Container */
.container {
    padding: 24px 20px;
}

/* Title Area */
.title-area {
    margin-bottom: 30px;
}

.title-area h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.title-area p {
    font-size: 14px;
    color: #666;
    letter-spacing: -0.5px;
}

/* Form Area */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.input-group label .required {
    color: #EF402B; /* 유밥 레드 */
    margin-left: 2px;
}

.input-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #F8F9FA;
    font-size: 15px;
    color: #333;
}

.input-group input::placeholder {
    color: #BDBDBD;
}

.input-group input:focus {
    outline: none;
    border-color: #333;
    background-color: #fff;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 30px 0;
}

/* Agreement Area */
.agreement-area h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.btn-link {
    display: flex;
    align-items: center;
    color: #6688FF;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 0;
}

.btn-link .arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 1px solid #6688FF;
    border-right: 1px solid #6688FF;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-top: -1px;

}

.terms-box {
    background-color: #F5F7FA;
    border: 1px solid #E1E1E1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.terms-box p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    letter-spacing: -0.5px;
}

/* Agree Button (Black) */
.btn-agree {
    width: 100%;
    height: 52px;
    background-color: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-agree.active {
    background-color: #555; /* 동의 완료 시 약간 연하게 */
    position: relative;
}

.btn-agree.active::after {
    content: " 완료";
}

/* Bottom CTA (Sticky) */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.btn-submit {
    width: 100%;
    max-width: 500px; /* wrap과 동일하게 */
    height: 60px;
    background-color: #EF402B; /* 유밥 메인 컬러 */
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-container {
    width: 90%;
    max-width: 480px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.text-content {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.text-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #222;
}

.text-content p {
    margin-bottom: 8px;
    color: #666;
}

.text-content .summary {
    color: #444;
}

.text-content .last-text {
    margin-top: 20px;
    font-weight: 500;
    color: #222;
}

.modal-footer {
    padding: 0;
}

.btn-close {
    width: 100%;
    height: 56px;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
