/* 회원가입 컨테이너 */
.signup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    min-height: calc(100vh - 160px);
    padding: 20px;
    background-color: #131217;
}

.signup-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* 회원가입 폼 */
.signup-form {
    margin-bottom: 20px;
}

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

/* 이메일 그룹 스타일 */
.email-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-group input[type="text"] {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #202020;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s;
}

.email-group input[type="text"]::placeholder {
    color: #888;
}

.email-at {
    color: #FFF;
    font-size: 16px;
}

/* 커스텀 드롭다운 스타일 */
.custom-dropdown {
    flex: 1;
    position: relative;
}

.dropdown-selected {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #202020;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-selected:focus {
    outline: none;
}

.dropdown-arrow {
    transition: transform 0.3s;
    width: 12px;
    height: 8px;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #202020;
    border: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-options.open {
    display: block;
}

.dropdown-option {
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
    color: white;
}

.dropdown-option:hover {
    background-color: #333;
}

.dropdown-option.selected {
    background-color: #1a5490;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #202020;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input::placeholder {
    color: #888;
}

.form-group input:focus,
.email-group input[type="text"]:focus {
    outline: none;
}

/* STEP 헤더 스타일 */
.step-header {
    margin-bottom: 20px;
    text-align: left;
    margin-top: 30px;
}

.step-header:first-child {
    margin-top: 0;
}

.step-number {
    color: #3F3FF5;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.step-title {
    color: #FFF;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin: 0;
}

/* 회원 유형 선택 */
.member-type-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-type-box {
    display: block;
    cursor: pointer;
    position: relative;
}

.member-type-box input[type="radio"] {
    display: none;
}

.box-content {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #202020;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.member-type-box input[type="radio"]:checked + .box-content {
    border-color: #3F3FF5;
    background: rgba(63, 63, 245, 0.1);
}

.type-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
}

.type-name {
    color: #FFF;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.check-mark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.member-type-box input[type="radio"]:checked + .box-content .check-mark {
    background: #3F3FF5;
}

.check-mark svg {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-type-box input[type="radio"]:checked + .box-content .check-mark svg {
    opacity: 1;
}

/* 기존 radio-label 스타일 제거 */
.radio-label {
    display: none;
}

/* 약관 섹션 수정된 스타일 */
.terms-section {
    margin: 0 0 25px 0;
}

.terms-list {
    margin-bottom: 15px;
}

.terms-list .checkbox-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.terms-list .checkbox-label:last-child {
    margin-bottom: 0;
}

/* 약관 텍스트 스타일 */
.terms-text {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

/* [필수] 태그 스타일 */
.required-tag {
    color: #3F3FF5;
    font-size: 14px;
    font-weight: 600;
    line-height: 150%;
}

/* [선택] 태그 스타일 */
.optional-tag {
    color: #3F3FF5;
    font-size: 14px;
    font-weight: 600;
    line-height: 150%;
}

/* 약관 제목 텍스트 스타일 */
.terms-title {
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 150%;
}

/* 보기 링크 스타일 */
.policy-link {
    color: #3F3FF5;
    font-size: 14px;
    font-weight: 600;
    line-height: 150%;
    text-decoration: none;
    margin-left: auto;
    padding: 2px 8px;
}

.policy-link:hover {
    text-decoration: underline;
}

/* 전체 동의 체크박스 */
.checkbox-label.all-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* 체크박스 기본 스타일 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #CECECE;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    border-radius: 3px;
    border: none;
    background-color: #1a5490;
}

.checkbox-label input[type="checkbox"]:checked:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 회원가입 버튼 */
.btn-signup-submit {
    width: 100%;
    padding: 15px;
    background: #3F3FF5;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-signup-submit:hover {
    background-color: #144170;
}

.btn-signup-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 로그인 링크 */
.login-link {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 25px;
}

.login-link a {
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 에러 메시지 */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 성공 메시지 */
.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.success-message.show {
    display: block;
}

/* 로딩 스피너 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1a5490;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}