/* 모달 기본 */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    overflow: auto;
    max-height: 80%;
    max-width: 90%;
    width: 600px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 16px;
        width: 92%;
    }
}

/* input floating label 애니메이션 */
.input-float {
    position: relative;
}

.input-float input,
.input-float select,
.input-float textarea {
    width: 100%;
    padding: 16px 12px 8px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    font-size: 17px;
    color: #1A1A1C;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.input-float input:focus,
.input-float select:focus,
.input-float textarea:focus {
    border-color: #333;
    border-width: 2px;
}

.input-float label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.2s;
}

.input-float input:focus ~ label,
.input-float input:not(:placeholder-shown) ~ label,
.input-float select:focus ~ label,
.input-float select:not([value=""]) ~ label {
    top: 8px;
    transform: translateY(0);
    font-size: 11px;
    color: #333;
}

/* 체크박스 커스텀 */
.checkbox-custom {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-custom:checked {
    background: #333;
    border-color: #333;
}

.checkbox-custom:checked::after {
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 스크롤 버튼 애니메이션 */
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}