/* 회원가입 페이지 스타일 */

/* 회원가입 컨테이너 */
.signup-container {
    padding: 20px 0 100px;
    min-height: calc(100vh - 300px);
}

.signup-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 진행 단계 표시 */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: var(--transition);
}

.step-item.active .step-number {
    background: var(--danger-color);
    color: var(--bg-white);
}

.step-item.completed .step-number {
    background: #4caf50;
    color: var(--bg-white);
}

.step-label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--danger-color);
    font-weight: 600;
}

.step-arrow {
    color: #ccc;
    font-size: 14px;
    margin: 0 5px;
}

/* 약관 동의 섹션 */
.terms-section {
    margin-bottom: 30px;
}

.terms-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.terms-item:first-child {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.terms-input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.terms-input:checked + .checkmark {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.terms-input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--bg-white);
    border-radius: 50%;
}

.terms-text {
    font-size: 15px;
    color: var(--text-dark);
}

.view-terms-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.view-terms-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* 폼 스타일 */
.signup-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.required {
    color: var(--danger-color);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.5;
}

.form-help.error-message {
    color: var(--danger-color);
    font-weight: 500;
}

/* 입력 필드와 버튼 함께 */
.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn .form-control {
    flex: 1;
}

.btn-check,
.btn-verify,
.btn-address-search {
    background: var(--danger-color);
    color: var(--bg-white);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-check:hover,
.btn-verify:hover,
.btn-address-search:hover {
    background: #c62828;
}

.btn-check:disabled,
.btn-verify:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 캡차 섹션 */
.captcha-section {
    margin-top: 10px;
}


.captcha-image-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#captchaCanvas {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.captcha-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
}

.captcha-refresh {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: #e0e0e0;
}

/* 버튼 스타일 */
.btn-next,
.btn-signup {
    width: 100%;
    background: var(--danger-color);
    color: var(--bg-white);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-next:hover,
.btn-signup:hover {
    background: #c62828;
}

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

.btn-cancel {
    width: 100%;
    background: var(--bg-white);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-cancel:hover {
    background: #fff5f5;
}

/* 가입완료 페이지 */
.signup-complete {
    text-align: center;
    padding: 20px 0;
}

.signup-complete h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.welcome-message {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.welcome-message span {
    color: var(--danger-color);
}

.info-messages {
    text-align: left;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.info-item i {
    color: var(--success-color);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.btn-home {
    width: 100%;
    background: var(--danger-color);
    color: var(--bg-white);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-home:hover {
    background: #c62828;
}

/* 단계 숨기기/보이기 */
.signup-step {
    display: none;
}

.signup-step.active {
    display: block;
}

/* 약관 모달 */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.terms-modal.active {
    display: flex;
}

.terms-modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.terms-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.terms-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.terms-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-close-modal {
    background: var(--danger-color);
    color: var(--bg-white);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* 푸터 정보 섹션 */
.footer-info-sections {
    padding: 20px 0;
    background: #f9f9f9;
}

.info-section {
    border-bottom: 1px solid #eee;
}

.info-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.info-title:hover {
    background: #f0f0f0;
}

.info-title i {
    color: #999;
    transition: var(--transition);
}

.info-section.active .info-title i {
    transform: rotate(180deg);
}

.info-content {
    display: none;
    padding: 15px 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.info-section.active .info-content {
    display: block;
}

/* 헤더 스타일 (회원가입 페이지용) */
.header .back-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}

.search-btn-header {
    margin-left: auto;
}

.search-btn-header a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .signup-card {
        padding: 20px 15px;
        margin: 0 15px;
    }

    .step-indicator {
        gap: 5px;
        padding: 15px 0;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .step-label {
        font-size: 11px;
    }

    .step-arrow {
        font-size: 12px;
        margin: 0 3px;
    }

    .terms-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .view-terms-btn {
        width: 100%;
        margin-top: 5px;
    }

    .input-with-btn {
        flex-direction: column;
    }

    .btn-check,
    .btn-verify {
        width: 100%;
    }

    .captcha-image-container {
        flex-wrap: wrap;
    }

    .captcha-input {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .signup-container {
        padding: 40px 0 120px;
    }

    .signup-card {
        padding: 40px 50px;
    }

    .step-indicator {
        gap: 15px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .step-label {
        font-size: 14px;
    }
}

