/*
body {
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
}
*/
#sub-container {
    padding: 30px 0;
    max-width: 1200px;
    min-height: calc(100vh - 250px);
    margin: 0 auto;
}
/* 모던 회원가입 폼 스타일 */
.modern-signup-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-signup-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    width: 100%;
    max-width: 650px;
    backdrop-filter: blur(10px);
}

.modern-signup-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.modern-signup-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    border-radius: 2px;
}

.modern-form-group {
    margin-bottom: 25px;
    position: relative;
}

.modern-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.required-mark {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 3px;
}

.optional-mark {
    color: #7f8c8d;
    font-weight: normal;
    margin-left: 3px;
}

.modern-form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.modern-form-input:focus {
    border-color: #009393;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 147, 147, 0.1);
    transform: translateY(-1px);
}

.modern-form-input.valid {
    border-color: #2ecc71;
    background: #f0fff4;
}

.modern-form-input.invalid {
    border-color: #e74c3c;
    background: #fff5f5;
}

.validation-message {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    display: none;
}

.validation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.validation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.cert-button {
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 147, 147, 0.2);
}

.cert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 147, 147, 0.3);
}

/* 본인인증 안내 모달 */
.phone-cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.phone-cert-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-cert-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.phone-cert-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.phone-cert-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.phone-cert-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.phone-cert-cancel,
.phone-cert-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.phone-cert-cancel {
    background: #6c757d;
    color: white;
}

.phone-cert-cancel:hover {
    background: #545b62;
}

.phone-cert-confirm {
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
}

.phone-cert-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 147, 147, 0.3);
}

/* 모달 푸터 */
.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e1e8ed;
    background-color: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.modal-confirm-btn {
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 147, 147, 0.3);
}

/* 약관 동의 섹션 */
.agreement-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.agreement-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.agreement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.agreement-item.all-agree {
    background: linear-gradient(135deg, rgba(0, 147, 147, 0.1) 0%, #e8f7f7 100%);
    border-color: #009393;
    font-weight: 600;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: #f8fafc;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    border-color: #009393;
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.agreement-text {
    flex: 1;
    font-size: 14px;
    color: #495057;
}

.required-text {
    color: #e74c3c;
    font-weight: 600;
}

.optional-text {
    color: #6c757d;
}

.view-content-btn {
    padding: 6px 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-content-btn:hover {
    background: #495057;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-cancel {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background: #ffffff;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    border-color: #bdc3c7;
    background: #f8fafc;
}

.btn-submit {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 147, 147, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 147, 147, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #95a5a6;
}

/* 약관 내용 표시를 위한 스타일 */
.modal-content-body {
    max-height: 50vh;
    overflow-y: auto;
    padding: 20px;
    line-height: 1.8;
    color: #333;
}

.modal-content-body p {
    margin: 10px 0;
}

.modal-content-body h1,
.modal-content-body h2,
.modal-content-body h3,
.modal-content-body h4,
.modal-content-body h5,
.modal-content-body h6 {
    margin: 15px 0 10px 0;
    font-weight: 600;
    color: #2c3e50;
}

.modal-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.modal-content-body table th,
.modal-content-body table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
}

.modal-content-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.modal-content-body ul,
.modal-content-body ol {
    padding-left: 20px;
    margin: 10px 0;
}

.modal-content-body li {
    margin: 5px 0;
}

/* 스크롤바 스타일링 (웹킷 브라우저) */
.modal-content-body::-webkit-scrollbar {
    width: 8px;
}

.modal-content-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content-body::-webkit-scrollbar-thumb {
    background: #009393;
    border-radius: 4px;
}

.modal-content-body::-webkit-scrollbar-thumb:hover {
    background: #006666;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .modern-signup-container {
        padding: 20px 15px;
    }
    
    .modern-signup-card {
        padding: 30px 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .agreement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}